Insert properly Hop-by-Hop option at first hop
This commit is contained in:
parent
2dfe2c377f
commit
d45782fbcd
2 changed files with 7 additions and 10 deletions
|
@ -348,12 +348,8 @@ rpl_invert_header(void)
|
|||
void
|
||||
rpl_insert_header(void)
|
||||
{
|
||||
uint8_t uip_ext_opt_offset;
|
||||
if(default_instance != NULL) {
|
||||
uip_ext_opt_offset = 2;
|
||||
if(UIP_EXT_HDR_OPT_BUF->type == UIP_EXT_HDR_OPT_RPL) {
|
||||
rpl_update_header_empty();
|
||||
}
|
||||
if(default_instance != NULL && !uip_is_addr_mcast(&UIP_IP_BUF->destipaddr)) {
|
||||
rpl_update_header_empty();
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue