scclib
Stable Cloud Computing C++ Library
Files | Classes | Enumerations
Internet network interface utility

Scans network interfaces and enumerates address types. More...

Collaboration diagram for Internet network interface utility:

Files

file  net_if.h
 Internet network interface utility.
 
file  net_if.cc
 Internet network interface utility implementation
 
file  net_if.cc
 Tests for Internet network interface utility.
 

Classes

class  scc::net::NetIfAddr
 Named address within an interface. More...
 
class  scc::net::NetIf
 A network interface. More...
 

Enumerations

enum  scc::net::NetIfFlag {
  scc::net::if_up = 0x001 , scc::net::if_broadcast = 0x002 , scc::net::if_loopback = 0x004 , scc::net::if_pointtopoint = 0x008 ,
  scc::net::if_running = 0x010 , scc::net::if_noarp = 0x020 , scc::net::if_promisc = 0x040 , scc::net::if_allmulti = 0x080 ,
  scc::net::if_multicast = 0x100 , scc::net::if_dynamic = 0x200 , scc::net::if_echo = 0x400
}
 Interface flags. More...
 

Detailed Description

Scans network interfaces and enumerates address types.

Enumeration Type Documentation

◆ NetIfFlag

Interface flags.

Enumerator
if_up 

Interface is running.

if_broadcast 

Valid broadcast address set.

if_loopback 

Interface is a loopback interface.

if_pointtopoint 

Interface is a point-to-point link.

if_running 

Resources allocated.

if_noarp 

No arp protocol, L2 destination address not set.

if_promisc 

Interface is in promiscuous mode.

if_allmulti 

Receives all multicast packets.

if_multicast 

Supports multicast.

if_dynamic 

The addresses are lost when the interface goes down.

if_echo 

Echoes sent packets.

Examples
net/unittest/inet.cc, and net/unittest/net_if.cc.

Definition at line 70 of file net_if.h.