Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nhrpd: fix sending /32 shortcut #16640

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

louis-6wind
Copy link
Contributor

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: d4aa24b ("*: Introduce Local Host Routes to FRR")

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: d4aa24b ("*: Introduce Local Host Routes to FRR")
Signed-off-by: Louis Scalbert <[email protected]>
@ton31337
Copy link
Member

@Mergifyio backport stable/10.1 stable/10.0

Copy link

mergify bot commented Aug 23, 2024

backport stable/10.1 stable/10.0

✅ Backports have been created

@ton31337 ton31337 merged commit 7af6571 into FRRouting:master Aug 23, 2024
16 checks passed
ton31337 added a commit that referenced this pull request Aug 24, 2024
Jafaral added a commit that referenced this pull request Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants