]> git.puffer.fish Git - mirror/frr.git/commit
nhrpd: shortcut routes installed with nexthop.
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 23 Jul 2020 06:57:05 +0000 (08:57 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 11 Feb 2021 08:06:28 +0000 (09:06 +0100)
commitef91ff04681ff3a7d17b985a02003ed308a363ab
tree486b222b8b716daf50e1b08238312c3f2865cb34
parentaa6fdabb7323407ffcd95a51e617cb0d1791443a
nhrpd: shortcut routes installed with nexthop.

Previously, when a shortcut entry was created, its associated route was
created on system, with no nexthop, only gre device. eg:

[..]
N>* 192.168.2.0/24 [10/0] is directly connected, gre1, 00:01:04           <--- can not be resolved

[..]
Type     Prefix                   Via                      Identity
dynamic  192.168.2.0/24           10.255.255.2              <---- correct

This situation was forcing neighbor resolution on the first outgoing packet matching the route entry. for instance 192.168.2.1 could not be resolved at link layer, and was going to fail. Instead, nhrp nexthop should have been used.
This is what this commit intends to do, that is to say that when a
shortcut is installed by nhrp, the associated nexthop entry is used.

[..]
N>* 192.168.2.0/24 [10/0] via 10.255.255.2, gre1 onlink, 00:00:31

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