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

Cache operations aren't sensitive to flush operations #315

Open
nhorman opened this issue May 11, 2022 · 2 comments
Open

Cache operations aren't sensitive to flush operations #315

nhorman opened this issue May 11, 2022 · 2 comments

Comments

@nhorman
Copy link
Contributor

nhorman commented May 11, 2022

In working with the various libnl3 cache operations, I don't receive any notification callback in the event of a flush operation (XFRM_MSG_FLUSHSA/XFRM_MSG_FLUSHPOL/etc). Looking at the code it appears the various corresponding nl_cache_ops structures all only encode the new/del/get/upd operations). Is this by design, or is there a way for a cache manager to notify an application of a flush operation?

@thom311
Copy link
Owner

thom311 commented May 11, 2022

I don't know, I am not familiar with that code (oddly enough, sorry about that :) ).

It does sound like a a bug, patch welcome!

@nhorman
Copy link
Contributor Author

nhorman commented May 11, 2022

copy that, Just wanted to be sure that there wasn't a reason all the caches ignored flush messages, before I worked something up. Thanks!

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