From 265af96a5567a99943f552d03af1ccf9c62f99fb Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Wed, 21 Jun 2017 16:07:17 +0200 Subject: [PATCH] Added new nbr-table reason for ND6 AUTOFILL --- core/net/ip/tcpip.c | 2 +- core/net/nbr-table.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/ip/tcpip.c b/core/net/ip/tcpip.c index 14ea3be26..25c7ec330 100644 --- a/core/net/ip/tcpip.c +++ b/core/net/ip/tcpip.c @@ -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"); diff --git a/core/net/nbr-table.h b/core/net/nbr-table.h index 320ef2e5f..eb1e083a4 100644 --- a/core/net/nbr-table.h +++ b/core/net/nbr-table.h @@ -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,