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

Rule returned from AddRule does not contain Handle, therefore impossible to delete #125

Closed
elmeyer opened this issue Jun 21, 2021 · 1 comment

Comments

@elmeyer
Copy link

elmeyer commented Jun 21, 2021

I hope the subject line is already sufficiently descriptive. Achieving this would probably require to flush the connection's messages and parse the appropriate reply on every call to AddRule, so this may not be easy to integrate with the current design. I have little experience with Netlink, so apologies if I'm on the wrong track.

A workaround is of course to get all rules, somehow find the one you just added and delete it, since it should contain the Handle.

@elmeyer
Copy link
Author

elmeyer commented Jun 21, 2021

Whoops, saw #88 too late. Sorry.

@elmeyer elmeyer closed this as completed Jun 21, 2021
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

1 participant