26 #ifndef NFD_CORE_NETWORK_INTERFACE_HPP
27 #define NFD_CORE_NETWORK_INTERFACE_HPP
31 #include <ndn-cxx/util/ethernet.hpp>
37 namespace ethernet = ndn::util::ethernet;
70 return (
flags & IFF_LOOPBACK) != 0;
76 return (
flags & IFF_MULTICAST) != 0;
82 return (
flags & IFF_BROADCAST) != 0;
88 return (
flags & IFF_UP) != 0;
94 std::vector<NetworkInterfaceInfo>
102 setDebugNetworkInterfaces(shared_ptr<std::vector<NetworkInterfaceInfo>> interfaces);
107 #endif // NFD_CORE_NETWORK_INTERFACE_HPP
contains information about a network interface
std::vector< boost::asio::ip::address_v6 > ipv6Addresses
ethernet::Address etherAddress
std::vector< NetworkInterfaceInfo > listNetworkInterfaces()
List configured network interfaces on the system and their info.
bool isBroadcastCapable() const
std::vector< boost::asio::ip::address_v4 > ipv4Addresses
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
boost::asio::ip::address_v4 broadcastAddress
bool isMulticastCapable() const