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

rtnl: update NETLINK_GET_STRICT_CHK socket flag with every request #86

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

jow-
Copy link
Owner

@jow- jow- commented Jun 27, 2022

So far the NETLINK_GET_STRICT_CHK socket flag was only set on the implicit
socket creation performed during the first request and ignored for
subsequent ones which made it impossible to perform only some requests
with enabled strict checking.

Modify the logic to check the flag state for every request and change
it if needed. This allows performing both strict and non-strict requests
over the same connection.

Signed-off-by: Jo-Philipp Wich jo@mein.io

So far the NETLINK_GET_STRICT_CHK socket flag was only set on the implicit
socket creation performed during the first request and ignored for
subsequent ones which made it impossible to perform only some requests
with enabled strict checking.

Modify the logic to check the flag state for every request and change
it if needed. This allows performing both strict and non-strict requests
over the same connection.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
@jow- jow- force-pushed the rtnl-fix-strict-chk branch from 9d31bb1 to c4dde50 Compare June 27, 2022 13:46
@jow- jow- merged commit 3c87929 into master Jun 28, 2022
@jow- jow- deleted the rtnl-fix-strict-chk branch June 28, 2022 08:01
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.

1 participant