Inserts missing IPv6 Hop-By-Hop RPL Option at first hop

This commit is contained in:
Sébastien Dawans 2013-07-31 22:39:00 +02:00
parent a07d332339
commit 78e807403c
3 changed files with 17 additions and 0 deletions

View file

@ -343,4 +343,16 @@ 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();
}
}
}
/*---------------------------------------------------------------------------*/
#endif /* UIP_CONF_IPV6 */