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

Link addrs, routes, and neighbors to ifaces #43

Open dankamongmen opened 4 years ago

dankamongmen commented 4 years ago

You can currently get addr/neigh/route information via callbacks, but not direct access. I'm not sure I want to expose them for direct access, necessarily (enumerations wouldn't be a problem), but they ought be available in one form or another through their iface objects. The "one form or another" is kinda critical there, hrmm.

dankamongmen commented 1 year ago

I'm using libnetstack in a proprietary program at work, and ran into this exact issue. We definitely need to expose them for first-order lookup. Doing something as quotidian as "tell me what iface this address is on" is otherwise a gigantic pain in the ass.