lwpa  0.1.0
LightWeight Platform Abstraction (lwpa)
View other versions:
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
LwpaNetintInfo Struct Reference

Overview

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.
 

Field Documentation

◆ ifindex

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.


The documentation for this struct was generated from the following file: