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: fixes duplicate auth extension #16808

Conversation

garyachy
Copy link
Contributor

@garyachy garyachy commented Sep 12, 2024

When an NHRP peer was forwarding a message, it was copying all extensions from the originally received packet. The authentication extension must be regenerated hop by hop per RFC2332. This fix checks for the auth extension when copying extensions and omits the original packet auth and instead regenerates a new auth extension.

Fixes #16507

When an NHRP peer was forwarding a message, it was copying all
extensions from the originally received packet. The authentication
extension must be regenerated hop by hop per RFC2332.
This fix checks for the auth extension when copying extensions
and omits the original packet auth and instead regenerates a new auth extension.

Fix bug FRRouting#16507

Signed-off-by: Denys Haryachyy <[email protected]>
@Jafaral
Copy link
Member

Jafaral commented Sep 13, 2024

ci:rerun ci seems to be stuck

@ton31337
Copy link
Member

@Mergifyio backport stable/10.1 stable/10.0 stable/9.1 stable/9.0

Copy link

mergify bot commented Sep 13, 2024

backport stable/10.1 stable/10.0 stable/9.1 stable/9.0

✅ Backports have been created

@Jafaral
Copy link
Member

Jafaral commented Sep 13, 2024

@Mergifyio backport stable/10.1 stable/10.0 stable/9.1 stable/9.0

auth extension was added very recently, so I think it only affect master, maybe 10.1 too.

@Jafaral Jafaral merged commit 53a0724 into FRRouting:master Sep 13, 2024
14 checks passed
Jafaral added a commit that referenced this pull request Sep 13, 2024
nhrpd: fixes duplicate auth extension (backport #16808)
donaldsharp added a commit that referenced this pull request Sep 13, 2024
nhrpd: fixes duplicate auth extension (backport #16808)
donaldsharp added a commit that referenced this pull request Sep 13, 2024
nhrpd: fixes duplicate auth extension (backport #16808)
donaldsharp added a commit that referenced this pull request Sep 13, 2024
nhrpd: fixes duplicate auth extension (backport #16808)
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.

Wrong NHRP Resolution Reply packet from spoke to spoke when NHRP Authentication is enabled
3 participants