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

fix: check nlmsghdr flags for interrupt #925

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

adrianchiris
Copy link
Collaborator

fail if NLM_F_DUMP_INTR flag is set

fail if NLM_F_DUMP_INTR flag is set

Signed-off-by: adrianc <[email protected]>
// < code which needs to be executed in specific netns>
// }
//
// func jobAt(...) error {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

while unrelated, linter keeps fixing this because of style issues.

@adrianchiris
Copy link
Collaborator Author

this check is similar to what is perfomed in libmnl[1]

[1] https://github.com/justmirror/libmnl/blob/f14732339a77a2e6ba9ed4ca99b347ce1dc60801/src/callback.c#L70

@aboch
Copy link
Collaborator

aboch commented Nov 12, 2023

LGTM

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

Successfully merging this pull request may close these issues.

2 participants