lwpa
0.1.0
LightWeight Platform Abstraction (lwpa)
|
View other versions:
|
A description of a network interface.
Data Fields | |
int | ifindex |
The OS-specific network interface number. More... | |
LwpaIpAddr | addr |
The interface ip address. | |
LwpaIpAddr | mask |
The subnet mask for this interface. | |
LwpaIpAddr | gate |
The address of the default gateway for this interface. | |
uint8_t | mac [NETINTINFO_MAC_LEN] |
The adapter MAC address. | |
char | name [NETINTINFO_NAME_LEN] |
The adapter name as a string. | |
bool | is_default |
Whether this is the default network interface. | |
int ifindex |
The OS-specific network interface number.
Not used on all OSes. May need to be cast'd away from int (e.g. uint) on your OS.