Kea 2.7.5
|
Access to interface information on Linux is via netlink, a socket-based method for transferring information between the kernel and user processes. More...
#include <config.h>
Go to the source code of this file.
Access to interface information on Linux is via netlink, a socket-based method for transferring information between the kernel and user processes.
For detailed information about netlink interface, please refer to http://en.wikipedia.org/wiki/Netlink and RFC3549. Comments in the detectIfaces() method (towards the end of this file) provide an overview on how the netlink interface is used here.
Note that this interface is very robust and allows many operations: add/get/set/delete links, addresses, routes, queuing, manipulation of traffic classes, manipulation of neighbourhood tables and even the ability to do something with address labels. Getting a list of interfaces with addresses configured on it is just a small subset of all possible actions.
Definition in file iface_mgr_linux.cc.