]> git.puffer.fish Git - mirror/frr.git/commit
nhrpd: Create route to private spoke-spoke network correctly
authorGaurav Goyal <gaurav.goyal@4rf.com>
Sun, 1 Nov 2020 23:11:19 +0000 (12:11 +1300)
committerReuben Dowle <reuben.dowle@4rf.com>
Wed, 16 Dec 2020 21:17:13 +0000 (10:17 +1300)
commitac95bcefe4492e620c33ab17b2c92c203abc2a5b
tree0327307cf528ca88c2f46cc58ccab641f34caebc
parentddd8d8c84522297b13b9b1068ea93553b53b27d5
nhrpd: Create route to private spoke-spoke network correctly

Currently when the first traffic to a private network causes a shortcut, an
on-link route to the private network is created on the gre interface, along
with the cache entry.

When connecting to a second IP in the same network, the kernel tries to resolve
the public IP for this private network via query to NHRP. nhrpd sees no entry
in the cache, so the packet is dropped.

The fix to this solution can be instead of creating an on-link route, create an
off-link route to private network, with the next-hop being the remote tunnel's
gre IP address.

Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
nhrpd/nhrp_shortcut.c