#include <netlink-socket.hpp>
Public Member Functions | |
RtnlSocket (boost::asio::io_service &io) | |
void | open () |
void | sendDumpRequest (uint16_t nlmsgType, MessageCallback cb) |
Public Member Functions inherited from ndn::net::NetlinkSocket | |
void | joinGroup (int group) |
void | registerNotificationCallback (MessageCallback cb) |
Protected Member Functions | |
std::string | nlmsgTypeToString (uint16_t type) const final |
Protected Member Functions inherited from ndn::net::NetlinkSocket | |
NetlinkSocket (boost::asio::io_service &io) | |
~NetlinkSocket () | |
void | open (int protocol) |
void | registerRequestCallback (uint32_t seq, MessageCallback cb) |
Additional Inherited Members | |
Public Types inherited from ndn::net::NetlinkSocket | |
using | Error = NetworkMonitor::Error |
using | MessageCallback = std::function< void(const NetlinkMessage &)> |
Protected Attributes inherited from ndn::net::NetlinkSocket | |
shared_ptr< boost::asio::posix::stream_descriptor > | m_sock |
netlink socket descriptor More... | |
uint32_t | m_pid |
port ID of this socket More... | |
uint32_t | m_seqNum |
sequence number of the last netlink request sent to the kernel More... | |
Definition at line 87 of file netlink-socket.hpp.
|
explicit |
Definition at line 280 of file netlink-socket.cpp.
void ndn::net::RtnlSocket::open | ( | ) |
Definition at line 286 of file netlink-socket.cpp.
References NDN_LOG_TRACE, and ndn::net::NetlinkSocket::open().
Referenced by ndn::net::NetworkMonitorImplNetlink::NetworkMonitorImplNetlink().
void ndn::net::RtnlSocket::sendDumpRequest | ( | uint16_t | nlmsgType, |
MessageCallback | cb | ||
) |
Definition at line 293 of file netlink-socket.cpp.
References ndn::net::NetlinkSocket::m_pid, ndn::net::NetlinkSocket::m_seqNum, ndn::net::NetlinkSocket::m_sock, NDN_LOG_ERROR, NDN_LOG_TRACE, nlmsgTypeToString(), ndn::net::NetlinkSocket::registerRequestCallback(), and RTEXT_FILTER_SKIP_STATS.
Referenced by ndn::net::NetworkMonitorImplNetlink::NetworkMonitorImplNetlink().
|
finalprotectedvirtual |
Reimplemented from ndn::net::NetlinkSocket.
Definition at line 331 of file netlink-socket.cpp.
References ndn::net::NetlinkSocket::nlmsgTypeToString(), and RTM_STRINGIFY.
Referenced by sendDumpRequest().