mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-15 12:27:50 +00:00
Coding style
This commit is contained in:
7
core/net/rpl/rpl-ext-header.c
Normal file → Executable file
7
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;
|
uip_ext_opt_offset = 2;
|
||||||
|
|
||||||
PRINTF("RPL: Verifying the presence of the RPL header option\n");
|
PRINTF("RPL: Verifying the presence of the RPL header option\n");
|
||||||
|
|
||||||
switch(UIP_IP_BUF->proto) {
|
switch(UIP_IP_BUF->proto) {
|
||||||
case UIP_PROTO_HBHO:
|
case UIP_PROTO_HBHO:
|
||||||
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {
|
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {
|
||||||
@@ -189,13 +190,13 @@ rpl_update_header_empty(void)
|
|||||||
int
|
int
|
||||||
rpl_update_header_final(uip_ipaddr_t *addr)
|
rpl_update_header_final(uip_ipaddr_t *addr)
|
||||||
{
|
{
|
||||||
|
rpl_parent_t *parent;
|
||||||
int uip_ext_opt_offset;
|
int uip_ext_opt_offset;
|
||||||
int last_uip_ext_len;
|
int last_uip_ext_len;
|
||||||
|
|
||||||
last_uip_ext_len=uip_ext_len;
|
last_uip_ext_len = uip_ext_len;
|
||||||
uip_ext_len=0;
|
uip_ext_len = 0;
|
||||||
uip_ext_opt_offset = 2;
|
uip_ext_opt_offset = 2;
|
||||||
rpl_parent_t *parent;
|
|
||||||
|
|
||||||
if(UIP_IP_BUF->proto == UIP_PROTO_HBHO) {
|
if(UIP_IP_BUF->proto == UIP_PROTO_HBHO) {
|
||||||
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {
|
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {
|
||||||
|
Reference in New Issue
Block a user