Added new nbr-table reason for ND6 AUTOFILL

This commit is contained in:
Simon Duquennoy 2017-06-21 16:07:17 +02:00
parent 2031edb607
commit 265af96a55
2 changed files with 2 additions and 1 deletions

View File

@ -678,7 +678,7 @@ tcpip_ipv6_output(void)
uip_lladdr_t lladdr;
uip_ds6_set_lladdr_from_iid(&lladdr, nexthop);
if((nbr = uip_ds6_nbr_add(nexthop, &lladdr,
0, NBR_REACHABLE, NBR_TABLE_REASON_IPV6_ND, NULL)) == NULL) {
0, NBR_REACHABLE, NBR_TABLE_REASON_IPV6_ND_AUTOFILL, NULL)) == NULL) {
PRINTF("tcpip_ipv6_output: failed to autofill neighbor cache for host ");
PRINT6ADDR(nexthop);
PRINTF("\n");

View File

@ -82,6 +82,7 @@ typedef enum {
NBR_TABLE_REASON_RPL_DIS,
NBR_TABLE_REASON_ROUTE,
NBR_TABLE_REASON_IPV6_ND,
NBR_TABLE_REASON_IPV6_ND_AUTOFILL,
NBR_TABLE_REASON_MAC,
NBR_TABLE_REASON_LLSEC,
NBR_TABLE_REASON_LINK_STATS,