#define IF_NAMESIZE 8
#define IFF_UP 0x00000001
#define IFF_BROADCAST 0x00000002
#define IFF_DEBUG 0x00000004
#define IFF_LOOPBACK 0x00000008
#define IFF_POINTOPOINT 0x00000010
#define IFF_NOARP 0x00000080
#define IFF_PROMISC 0x00000100
#define IFF_ALLMULTI 0x00000200
#define IFF_DRV_OACTIVE 0x00000400
#define IFF_SIMPLEX 0x00000800
#define IFF_LINK0 0x00001000
#define IFF_LINK1 0x00002000
#define IFF_LINK2 0x00004000
#define IFF_MULTICAST 0x00008000
#define IFF_PPROMISC 0x00020000
#define IFF_MONITOR 0x00040000
#define IFF_STATICARP 0x00080000
#define LINK_STATE_UNKNOWN 0
#define LINK_STATE_DOWN 1
#define LINK_STATE_UP 2
struct ifreq | |
{ | |
char ifr_name[8]; | |
union | |
{ | |
uint32_t ifru_addr; | |
uint32_t ifru_dstaddr; | |
uint32_t ifru_broadaddr; | |
uint16_t ifru_flags[2]; | |
uint16_t ifru_index; | |
int ifru_metric; | |
int ifru_mtu; | |
int ifru_phys; | |
int ifru_media; | |
int ifru_cap[2]; | |
} | |
ifr_ifru; | |
} |