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

babeld: Add Flags checking in Hello TLV #18212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zmw12306
Copy link
Contributor

According to RFC 8966: https://www.rfc-editor.org/rfc/rfc8966#name-hello

X: all other bits MUST be sent as 0 and silently ignored on reception

This means the Flags field could either be BABEL_UNICAST_HELLO 0x8000 or BABEL_MULTICAST_HELLO 0x0000, otherwise it is an invalid packet.

@frrbot frrbot bot added the babel label Feb 20, 2025
@donaldsharp
Copy link
Member

can you put your analysis about what is going on in the actual commit itself?

@zmw12306
Copy link
Contributor Author

can you put your analysis about what is going on in the actual commit itself?

This commit checks whether it is a valid MULTICAST hello, if not, the code logs a debug message and stops processing the packet. Do you want me to add this to the commit message?

@riw777
Copy link
Member

riw777 commented Feb 25, 2025

can you put your analysis about what is going on in the actual commit itself?

This commit checks whether it is a valid MULTICAST hello, if not, the code logs a debug message and stops processing the packet. Do you want me to add this to the commit message?

Yes, that would be great.

Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good ... just waiting on the commit message

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.

3 participants