]> git.puffer.fish Git - matthieu/frr.git/commit
nhrpd: replace nhrp route nexthop with onlink route when prefix=nh
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 30 Jul 2020 16:16:16 +0000 (18:16 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 9 Feb 2021 20:45:36 +0000 (21:45 +0100)
commit9f50536993f1eb900fbfbe98d21b8c072bbd9c15
treef3c6d3c82943be0fb5d1cc936537d8cd83804235
parent8c185008246db31c34574d7b79358001ac411f84
nhrpd: replace nhrp route nexthop with onlink route when prefix=nh

There are cases where nhrp wants to create a nhrp route to gre interface
with the nexthop which is the same the prefix. This is the case with
ipv6:

ipv6 route a:ff::ff:4/128 via a:ff::ff:4:/128 dev gre1

This route entry is false from zebra point of view, and to avoid that,
the nexthop is ignored in nhrp only if the prefix equals the nexthop.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
nhrpd/nhrp_route.c