]> git.puffer.fish Git - mirror/frr.git/commit
nhrpd: replace nhrp route nexthop with onlink route when prefix=nh 7764/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 30 Jul 2020 16:16:16 +0000 (18:16 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 11 Feb 2021 08:06:32 +0000 (09:06 +0100)
commita3e520f37b084fe759da16f367f6a32f6f7e42a8
tree80666275574931a4537269fa0950dc3aeb5cc23a
parentef91ff04681ff3a7d17b985a02003ed308a363ab
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