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

NeighSet comment and implementation differ #1020

Open
robertcankney opened this issue Sep 24, 2024 · 1 comment
Open

NeighSet comment and implementation differ #1020

robertcankney opened this issue Sep 24, 2024 · 1 comment

Comments

@robertcankney
Copy link

Hi - NeighSet says in that comment that it will create or update an existing ARP entry (the semantics of NLM_F_CREATE not ORed with any other flags). However, the code ORs that with NLM_F_REPLACE.

Per https://docs.kernel.org/userspace-api/netlink/intro.html#other-request-type-specific-flags, that means it will fail if the neighbor does not exist. I can confirm from using this code that this is the case.

Happy to open a PR to either change the doc comment, or change the flags so the behavior matches the doc comment!

@aboch
Copy link
Collaborator

aboch commented Sep 25, 2024

Thank you @robertcankney
Please open a PR with the change you find proper. Somebody will review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants