dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

Don't subscribe to unused groups #36

Closed dankamongmen closed 4 years ago

dankamongmen commented 5 years ago

If we're both not tracking an object class and not invoking a callback, we ought not subscribe to its group(s), as these events will just be extra, useless work. The one exception is ifaces, which are needed as the indexing backbone of everything else.

Though really, we need to work even if we miss an iface message, so maybe other messages referencing an unknown idx ought create an iface? But we wouldn't know its name...