UNISTDX_NET_NETWORK_INTERFACE
enum network_interface_flags: u16
  • receive_all_multicast_packets = IFF_ALLMULTI
  • broadcast = IFF_BROADCAST
  • debug = IFF_DEBUG
  • loopback = IFF_LOOPBACK
  • master = IFF_MASTER
  • multicast = IFF_MULTICAST
  • no_arg = IFF_NOARP
  • no_trailers = IFF_NOTRAILERS
  • point_to_point = IFF_POINTOPOINT
  • media = IFF_PORTSEL
  • promiscuous = IFF_PROMISC
  • running = IFF_RUNNING
  • slave = IFF_SLAVE
  • up = IFF_UP
class sys::network_interface
Derived classes
Types
  • using traits_type = std::string::traits_type
  • using network_interface_request = ::ifreq
  • using interface_address_type = sys::interface_address< sys::ipv4_address >
  • using flag = network_interface_flags
Fields
  • std::string _name
Methods
  • operator!() const -> bool
  • operator bool() constexplicit
  • down() -> void
  • up() -> void
  • name() const -> const std::string &
  • set_namespace(fd_type ns) -> void
  • address(const interface_address_type & addr) -> void
  • address() const -> auto
  • index() const -> auto
  • unsetf(flag f) -> void
  • setf(flag f) -> void
  • flags() const -> auto
  • flags(flag f) -> void
  • operator=(const network_interface &) -> network_interface &
  • network_interface(const network_interface &)
  • operator=(network_interface &&) -> network_interface &
  • network_interface(network_interface &&)
  • ~network_interface()
  • network_interface()
  • network_interface(int index)explicit
  • network_interface(std::string name)explicit
  • max_name_size() -> constexpr size_t
struct sys::is_flag< network_interface_flags >
Base classes
  • public std::true_type