#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 43 of file network-monitor-impl-netlink.cpp.
References ndn::net::NetlinkSocket::joinGroup(), NDN_LOG_TRACE, ndn::net::RtnlSocket::open(), ndn::net::NetlinkSocket::registerNotificationCallback(), and ndn::net::RtnlSocket::sendDumpRequest().
|
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 65 of file network-monitor-impl-netlink.cpp.
|
finalvirtual |
Implements ndn::net::NetworkMonitorImpl.
Definition at line 75 of file network-monitor-impl-netlink.cpp.