Coding style
This commit is contained in:
parent
e11b7d4fb6
commit
7c808081d6
3
core/net/rpl/rpl-ext-header.c
Normal file → Executable file
3
core/net/rpl/rpl-ext-header.c
Normal file → Executable file
|
@ -133,6 +133,7 @@ rpl_update_header_empty(void)
|
|||
uip_ext_opt_offset = 2;
|
||||
|
||||
PRINTF("RPL: Verifying the presence of the RPL header option\n");
|
||||
|
||||
switch(UIP_IP_BUF->proto) {
|
||||
case UIP_PROTO_HBHO:
|
||||
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {
|
||||
|
@ -189,13 +190,13 @@ rpl_update_header_empty(void)
|
|||
int
|
||||
rpl_update_header_final(uip_ipaddr_t *addr)
|
||||
{
|
||||
rpl_parent_t *parent;
|
||||
int uip_ext_opt_offset;
|
||||
int last_uip_ext_len;
|
||||
|
||||
last_uip_ext_len = uip_ext_len;
|
||||
uip_ext_len = 0;
|
||||
uip_ext_opt_offset = 2;
|
||||
rpl_parent_t *parent;
|
||||
|
||||
if(UIP_IP_BUF->proto == UIP_PROTO_HBHO) {
|
||||
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {
|
||||
|
|
Loading…
Reference in a new issue