Comments (6)
Did you resync the cache after replugging the interface?
from libnl.
That seemed to do it, thanks!
I had no idea about the resync function until I dove into the source looking for it. Is there a note in the docs somewhere about needing to use it if you have hotplug devices?
from libnl.
Unfortunately the caching system is not very well documented at this point.
from libnl.
Actually I was wrong... it's still not working. I'm doing rtnl_cache_resync(sock, link_cache, NULL, NULL) right after I allocate the link cache, is that the correct way to use it? Any ideas?
from libnl.
You have two options:
a) Manually resync the cache periodically to update your local cache to the latest state in the kernel. Caches do not automatically receive updates.
b) Use the cache manager to allocate and manage the cache [0] which will listen for notifications such as new links appearing, links disappearing and updating the cache as needed.
[0] http://www.infradead.org/~tgr/libnl/doc/core.html#_cache_manager
from libnl.
So what is the preferred way to manually resync the cache?
from libnl.
Related Issues (20)
- TC action stats are not updated HOT 1
- The delete command does not take effect.
- xfrm lib missing the set/get for if_id
- Warnings about missing symbol when building with mold linker HOT 11
- Get all SP policies
- Zero counter IPCTNL_MSG_CT_GET_CTRZERO while listing does not work HOT 2
- Build failed HOT 2
- Is the comment for nl_nh_group_info correct? HOT 2
- InvalidFree and InvalidRead in Valgrind when linked against libnl HOT 3
- libnl-3.8.0 fails checks HOT 6
- need help with rtnl_route_add without gateway but a subnet HOT 3
- need help about rtnl_route_nh_set_via HOT 1
- support linux altname
- error: storage size of 'tm_buf' isn't known due to missing #include <time.h> HOT 1
- 2nd RTM_NEWLINK notification with operstate down is always 1 second delayed HOT 3
- Question: how are multiple VLANs in a bridge with VLAN filtering mode represented
- bridge object in link cache may get replaced by an incomplete object HOT 3
- Package for RHEL HOT 3
- Question: message request type for adding/deleting vlan id on port
- mdb implementation inefficient HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libnl.