#include <network-monitor-impl-netlink.hpp>
Public Member Functions | |
NetworkMonitorImplNetlink (boost::asio::io_service &io) | |
initialize netlink socket and start enumerating interfaces More... | |
uint32_t | getCapabilities () const final |
shared_ptr< const NetworkInterface > | getNetworkInterface (const std::string &ifname) const final |
std::vector< shared_ptr< const NetworkInterface > > | listNetworkInterfaces () const final |
Public Member Functions inherited from ndn::net::NetworkMonitorImpl | |
virtual | ~NetworkMonitorImpl ()=default |
Additional Inherited Members | |
Public Types inherited from ndn::net::NetworkMonitorImpl | |
using | Error = NetworkMonitor::Error |
Public Attributes inherited from ndn::net::NetworkMonitorImpl | |
util::Signal< NetworkMonitorImpl > | onEnumerationCompleted |
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > | onInterfaceAdded |
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > | onInterfaceRemoved |
util::Signal< NetworkMonitorImpl > | onNetworkStateChanged |
Static Protected Member Functions inherited from ndn::net::NetworkMonitorImpl | |
static shared_ptr< NetworkInterface > | makeNetworkInterface () |
Definition at line 41 of file network-monitor-impl-netlink.hpp.
|
explicit |
initialize netlink socket and start enumerating interfaces
Definition at line 47 of file network-monitor-impl-netlink.cpp.
References ndn::net::NetlinkSocket::joinGroup(), ndn::net::RtnlSocket::open(), and ndn::net::NetlinkSocket::registerNotificationCallback().
|
inlinefinalvirtual |
Implements ndn::net::NetworkMonitorImpl.
Definition at line 50 of file network-monitor-impl-netlink.hpp.
References ndn::net::NetworkMonitor::CAP_ADDR_ADD_REMOVE, ndn::net::NetworkMonitor::CAP_ENUM, ndn::net::NetworkMonitor::CAP_IF_ADD_REMOVE, ndn::net::NetworkMonitor::CAP_MTU_CHANGE, and ndn::net::NetworkMonitor::CAP_STATE_CHANGE.
|
finalvirtual |
Implements ndn::net::NetworkMonitorImpl.
Definition at line 64 of file network-monitor-impl-netlink.cpp.
|
finalvirtual |
Implements ndn::net::NetworkMonitorImpl.
Definition at line 74 of file network-monitor-impl-netlink.cpp.