net: rpl: Fix compile errors

This fixes RPL compile errors if CONFIG_NETWORKING_WITH_RPL is
enabled. The end result is not tested atm so RPL might not yet
work as expected.

Change-Id: I458c20f8f8c7c750cc17f24acf425f244399699d
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2015-06-12 16:15:47 +03:00 committed by Anas Nashif
commit e0509c5e6f
14 changed files with 337 additions and 313 deletions

View file

@ -903,7 +903,7 @@ ext_hdr_options_process(struct net_buf *buf)
*/
#if UIP_CONF_IPV6_RPL
PRINTF("Processing RPL option\n");
if(rpl_verify_header(uip_ext_opt_offset(buf))) {
if(rpl_verify_header(buf, uip_ext_opt_offset(buf))) {
PRINTF("RPL Option Error: Dropping Packet\n");
return 1;
}
@ -1605,7 +1605,7 @@ uip_process(struct net_buf *buf, uint8_t flag)
#endif /* UIP_UDP_CHECKSUMS */
#if UIP_CONF_IPV6_RPL
rpl_insert_header();
rpl_insert_header(buf);
#endif /* UIP_CONF_IPV6_RPL */
UIP_STAT(++uip_stat.udp.sent);