Check out my first novel, midnight's simulacra!

Libnetstack

From dankwiki
Revision as of 16:59, 1 November 2019 by Dank (talk | contribs) (Created page with "<tt>AF_NETLINK</tt> sockets allow one to enumerate networking stack elements, and subscribe to events regarding changes, additions, and deletions thereof. Netlink is kind...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AF_NETLINK sockets allow one to enumerate networking stack elements, and subscribe to events regarding changes, additions, and deletions thereof. Netlink is kind of a pain in the ass to work with directly, though. My libnetlink enumerates all existing networking stack elements, subscribes to events, and makes all of this available to the user via queries and/or realtime callbacks. libnetstack has been designed to provide responsive service even in the presence of millions of routes with rapid churning of the route tables.

Code lives at https://github.com/dankamongmen/libnetstack.