Merge pull request #1400 from pablocorbalan/nud-with-acks

Refresh nbr reachable state after received IPv6 unicast message
This commit is contained in:
Simon Duquennoy 2016-11-23 12:00:13 +01:00 committed by GitHub
commit 86dbd590db
5 changed files with 51 additions and 23 deletions

View file

@ -85,6 +85,10 @@
#include "rpl/rpl-private.h"
#endif
#if UIP_ND6_SEND_NA
#include "net/ipv6/uip-ds6-nbr.h"
#endif /* UIP_ND6_SEND_NA */
#include <string.h>
/*---------------------------------------------------------------------------*/
@ -1151,6 +1155,13 @@ uip_process(uint8_t flag)
goto drop;
}
/* Refresh neighbor state after receiving a unicast message */
#if UIP_ND6_SEND_NA
if(!uip_is_addr_mcast(&UIP_IP_BUF->destipaddr)) {
uip_ds6_nbr_refresh_reachable_state(&UIP_IP_BUF->srcipaddr);
}
#endif /* UIP_ND6_SEND_NA */
#if UIP_CONF_ROUTER
/*
* Next header field processing. In IPv6, we can have extension headers,