-
Notifications
You must be signed in to change notification settings - Fork 313
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
Duplicated rtnl_link entries in nl_cache #287
Comments
Hi there, So I dug a little deeper on that matter and it seems in fact that there are So the turning point seems to be 125119a
After that commit we:
On my kernel 5.4 even if I do not set
For me the problem is that we can now have in the cache objects of different families at the same time, with a different set of information in them, and we don't control which one we get when using standard apis like Did I miss something ? Is this still expect behavior & desired ? |
can you write your code |
Hi nscnd, Did you solve that issue? I can't get AF_UNSPEC entries for bridge (and I need them as my bridges have another master interface, which is vrf) even I set NL_CACHE_AF_ITER. |
Hello there, |
A solution for the problem (if you still need one) might be looping over the cache with |
Hi there,
Since 764c30a, there seems to be a bug regarding rtnl_links objects in a nl_cache.
We now have duplicated entries for a signle ifindex which seems wrong
I can see it in an application that follows this pattern:
1- create a
nl_sock
2- create a
nl_cache_mngr
withnl_cache_mngr_alloc
3- create a link cache with
nl_cache_mngr_add
&"route/link"
4- monitor changes with our eventloop with
nl_cache_mngr_get_fd
/nl_cache_mngr_data_ready
... later on in the program after some links added/removed/modified ...
5- enumerate all links from cache using
nl_cache_foreach
6- display their index with
rtnl_link_get_ifindex
This used to give me the following output
And now it gives:
Surely this isn't expected behaviour right ?
Thanks
The text was updated successfully, but these errors were encountered: