NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
static AddressScope ifaScopeToAddressScope(uint8_t scope)
interface can be used to send and receive packets
interface is administratively up but has no carrier
void setState(InterfaceState state)
static shared_ptr< NetworkInterface > makeNetworkInterface()
const size_t ADDR_LEN
Octets in one Ethernet address.
static const char * nlmsgTypeToString(uint16_t type)
static AddressFamily ifaFamilyToAddressFamily(uint8_t family)
#define NLMSG_STRINGIFY(x)
#define emitSignal(...)
(implementation detail)
InterfaceType
Indicates the hardware type of a network interface.
constexpr duration< Rep, Period > abs(duration< Rep, Period > d)
static InterfaceType ifiTypeToInterfaceType(uint16_t type)
shared_ptr< const NetworkInterface > getNetworkInterface(const std::string &ifname) const final
util::Signal< NetworkMonitorImpl > onEnumerationCompleted
Represents one network interface attached to the host.
#define NDN_LOG_INIT(name)
declare a log module
Stores one IP address supported by a network interface.
#define NDN_LOG_DEBUG(expression)
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > onInterfaceRemoved
NetworkMonitorImplRtnl(boost::asio::io_service &io)
initialize netlink socket and start enumerating interfaces
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > onInterfaceAdded
interface has a carrier but it cannot send or receive normal user traffic yet
AddressFamily getFamily() const
Returns the address family.
represents an Ethernet hardware address
NetworkMonitor::Error Error
uint32_t getFlags() const
Returns a bitset of platform-specific flags enabled on the interface.
~NetworkMonitorImplRtnl()
#define NDN_LOG_ERROR(expression)
std::string to_string(const V &v)
util::Signal< NetworkMonitorImpl > onNetworkStateChanged
#define NDN_LOG_TRACE(expression)
Catch-all error for socket component errors that don't fit in other categories.
std::vector< shared_ptr< const NetworkInterface > > listNetworkInterfaces() const final
ndnSIM
ndn-cxx
src
net
detail
network-monitor-impl-rtnl.cpp