NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::net::RtnlSocket Class Referencefinal

#include <netlink-socket.hpp>

Inheritance diagram for ndn::net::RtnlSocket:
Collaboration diagram for ndn::net::RtnlSocket:

Public Member Functions

 RtnlSocket (boost::asio::io_service &io)
 
void open ()
 
void sendDumpRequest (uint16_t nlmsgType, const void *payload, size_t payloadLen, 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::generic::raw_protocol::socket > 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...
 

Detailed Description

Definition at line 87 of file netlink-socket.hpp.

Constructor & Destructor Documentation

◆ RtnlSocket()

ndn::net::RtnlSocket::RtnlSocket ( boost::asio::io_service &  io)
explicit

Definition at line 350 of file netlink-socket.cpp.

Member Function Documentation

◆ open()

void ndn::net::RtnlSocket::open ( )

◆ sendDumpRequest()

void ndn::net::RtnlSocket::sendDumpRequest ( uint16_t  nlmsgType,
const void *  payload,
size_t  payloadLen,
MessageCallback  cb 
)

◆ nlmsgTypeToString()

std::string ndn::net::RtnlSocket::nlmsgTypeToString ( uint16_t  type) const
finalprotectedvirtual

Reimplemented from ndn::net::NetlinkSocket.

Definition at line 400 of file netlink-socket.cpp.

References ndn::net::NetlinkSocket::nlmsgTypeToString(), and RTM_STRINGIFY.

Referenced by sendDumpRequest().


The documentation for this class was generated from the following files: