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

@ -155,7 +155,7 @@ echo_request_input(struct net_buf *buf)
if(uip_ext_len(buf) > 0) {
#if UIP_CONF_IPV6_RPL
if((temp_ext_len = rpl_invert_header())) {
if((temp_ext_len = rpl_invert_header(buf))) {
/* If there were other extension headers*/
UIP_FIRST_EXT_BUF(buf)->next = UIP_PROTO_ICMP6;
if (uip_ext_len(buf) != temp_ext_len) {
@ -230,7 +230,7 @@ uip_icmp6_error_output(struct net_buf *buf, uint8_t type, uint8_t code, uint32_t
}
#if UIP_CONF_IPV6_RPL
uip_ext_len(buf) = rpl_invert_header();
uip_ext_len(buf) = rpl_invert_header(buf);
#else /* UIP_CONF_IPV6_RPL */
uip_ext_len(buf) = 0;
#endif /* UIP_CONF_IPV6_RPL */
@ -339,7 +339,7 @@ echo_reply_input(struct net_buf *buf)
if(uip_ext_len(buf) > 0) {
#if UIP_CONF_IPV6_RPL
if((temp_ext_len = rpl_invert_header())) {
if((temp_ext_len = rpl_invert_header(buf))) {
/* If there were other extension headers*/
UIP_FIRST_EXT_BUF(buf)->next = UIP_PROTO_ICMP6;
if (uip_ext_len(buf) != temp_ext_len) {