]> git.puffer.fish Git - mirror/frr.git/commit
nhrpd: fix sending /32 shortcut 16640/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Fri, 23 Aug 2024 14:05:45 +0000 (16:05 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 23 Aug 2024 15:34:13 +0000 (17:34 +0200)
commitaf54901405474b0623bda1899424ec18a3240c71
treede34f361aad9b883465faccdd995c4267ccccdef
parent83a60e7e20449b04a996ba53bd43c1659b6fbc0f
nhrpd: fix sending /32 shortcut

The remote spoke always sends a 32 prefix length to a shortcut request.
In the example, the remote spoke as the IP address 192.168.2.1/24.

spoke1# sh ip nhrp shortcut
Type     Prefix                   Via                      Identity
dynamic  192.168.2.1/32           10.255.255.2

Do not deal with local routes in nhrpd. Now:

spoke1# sh ip nhrp shortcut
Type     Prefix                   Via                      Identity
dynamic  192.168.2.0/24           10.255.255.2

Fixes: d4aa24ba7d ("*: Introduce Local Host Routes to FRR")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
nhrpd/nhrp_route.c