Use rpl headers.

This commit is contained in:
Nicolas Tsiftes 2011-12-02 15:54:49 +01:00
parent 7c808081d6
commit 5c0100c979
2 changed files with 8 additions and 13 deletions

View file

@ -78,17 +78,16 @@ void uip_log(char *msg);
#ifdef UIP_FALLBACK_INTERFACE
extern struct uip_fallback_interface UIP_FALLBACK_INTERFACE;
#endif
#if UIP_CONF_IPV6_RPL
void rpl_init(void);
int rpl_update_header_final(uip_ipaddr_t *addr);
#endif /* UIP_CONF_IPV6_RPL */
#include "rpl/rpl.h"
#endif
process_event_t tcpip_event;
#if UIP_CONF_ICMP6
process_event_t tcpip_icmp6_event;
#endif /* UIP_CONF_ICMP6 */
/*static struct tcpip_event_args ev_args;*/
/*periodic check of active connections*/
static struct etimer periodic;
@ -607,9 +606,7 @@ tcpip_ipv6_output(void)
}
#endif /* UIP_CONF_IPV6_RPL */
if((nbr = uip_ds6_nbr_lookup(nexthop)) == NULL) {
// printf("add1 %d\n", nexthop->u8[15]);
if((nbr = uip_ds6_nbr_add(nexthop, NULL, 0, NBR_INCOMPLETE)) == NULL) {
// printf("add n\n");
uip_len = 0;
return;
} else {

View file

@ -95,9 +95,7 @@
#endif
#if UIP_CONF_IPV6_RPL
void uip_rpl_input(void);
void rpl_update_header_empty(void);
int rpl_verify_header(int uip_ext_opt_offset);
#include "rpl/rpl.h"
#endif /* UIP_CONF_IPV6_RPL */
#if UIP_LOGGING == 1