]> git.puffer.fish Git - matthieu/frr.git/commit
nhrp, zebra, lib: pass exact received neighbor state value to nhrp
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 25 Aug 2021 09:40:41 +0000 (11:40 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 26 Aug 2021 07:19:42 +0000 (09:19 +0200)
commitc4e1fd52a149a4686b9c1ff1dd4b3a24740eb03b
tree0d2114cd3620f2b1e45abba2e7c0e8068c679c47
parent3e324ff41921c719de3aabc4136546828416532f
nhrp, zebra, lib: pass exact received neighbor state value to nhrp

As NHRP expects some notification of neighboring entries on GRE
interface, when a new interface notification is encountered, the
exact neighbor state flag is found. Previously, the flag passed
to the upper layer was forced to NDM_STATE which is REACHABLE,
as can be seen on below trace:

2021/08/25 10:58:39 NHRP: [QQ0NK-1H449] Netlink: new-neigh 102.1.1.1 dev gre1 lladdr 10.125.0.2 nud 0x2 cache used 1 type 5

When passing the real value, NHRP received an other value like STALE.

2021/08/25 11:28:44 NHRP: [QQ0NK-1H449] Netlink: new-neigh 102.1.1.1 dev gre1 lladdr 10.125.0.2 nud 0x4 cache used 0 type 5

This flag is important for NHRP, as it permits to monitor the link
layer of NHRP entries.

Fixes: d603c0774eba ("nhrp, zebra, lib: enforce usage of zapi_neigh_ip structure")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/zclient.c
lib/zclient.h
nhrpd/nhrp_route.c
zebra/zapi_msg.c