libnl icon indicating copy to clipboard operation
libnl copied to clipboard

Cache operations aren't sensitive to flush operations

Open nhorman opened this issue 3 years ago • 2 comments

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?

nhorman avatar May 11 '22 18:05 nhorman

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!

thom311 avatar May 11 '22 19:05 thom311

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!

nhorman avatar May 11 '22 19:05 nhorman