Updated: October 28, 2024 |
Network interface data
#include <qwf/qwf_net.h>
typedef struct qwf_net_InterfaceData_s { qwf_net_IfName_t name; qwf_net_IfType_e ifType; bool connected; bool physicalUp; bool hasIpAddr; bool ip4; bool ip6; uint8_t fib; uint16_t mtu; qwf_net_IpAddrStr_t ip4Address; qwf_net_IpAddrStr_t ip4Netmask; qwf_net_IpAddrStr_t ip4Gateway; qwf_net_IpAddrStr_t ip6Address; uint8_t ip6NetPrefixLen; qwf_net_IpAddrStr_t ip6Gateway; qwf_net_IpAddrStr_t broadcast; char mac[QWF_NET_MAX_MAC_ADDR_LEN+1]; qwf_net_IpAddrStr_t ip4NameServers[QWF_NET_NUM_DNS_ADDRS]; qwf_net_IpAddrStr_t ip6NameServers[QWF_NET_NUM_DNS_ADDRS]; char searchDomain[QWF_NET_MAX_DNS_NAME_LEN+1]; qwf_net_IpConfigMethod_e ip4ConfigMethod; qwf_net_IpConfigMethod_e ip6ConfigMethod; bool unmanaged; } qwf_net_InterfaceData_t;
Network interface name
Network interface type
Whether the interface is connected
Whether the physical interface is up
Whether the interface has an IP address
Whether the interface has an IPv4 address
Whether the interface has an IPv6 address
FIB (Forwarding Information Base) for the network interface
MTU (Maximum Transmission Unit) for the network interface
IPv4 address (if available)
IPv4 netmask (if IPv4 is available)
IPv4 gateway
IPv6 address (if available)
IPv6 network prefix length (if IPv6 is available), as the number of bits used for the mask. The maximum prefix length is 128.
IPv6 gateway
Broadcast IP address
MAC address for the interface
IPv4 primary and secondary name servers for the interface, as an array of IP addresses
IPv6 primary and secondary name servers for the interface, as an array of IP addresses
Search domain name(s) for the interface. This field is informational only. Multiple search domain names are delimited by commas in the string.
Whether the IPv4 interface settings are configured manually, DHCP settings are applied, or the interface won't be considered for IPv4 selection.
Whether the IPv6 interface settings are configured manually, DHCPv6 settings are applied, or the interface won't be considered for IPv6 selection.
Whether the interface is being managed internally