Updated: October 28, 2024 |
Data for a connected network interface
#include <qwf/qwf_net.h>
typedef struct qwf_net_ConnectData_s { qwf_net_IfName_t ifName; qwf_net_IfType_e ifType; qwf_net_IpConfigMethod_e ip4ConfigMethod; qwf_net_IpConfigMethod_e ip6ConfigMethod; qwf_net_IpAddrStr_t ip4Address; qwf_net_IpAddrStr_t ip6Address; qwf_net_IpAddrStr_t ip4Netmask; uint8_t ip6NetPrefixLen; qwf_net_IpAddrStr_t ip4Gateway; qwf_net_IpAddrStr_t ip6Gateway; qwf_net_IpAddrStr_t ip4NameServers[QWF_NET_NUM_DNS_ADDRS]; qwf_net_IpAddrStr_t ip6NameServers[QWF_NET_NUM_DNS_ADDRS]; } qwf_net_ConnectData_t;
Network interface name
Network interface type
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.
IPv4 address (if available)
IPv6 address (if available)
IPv4 netmask (if IPv4 is available)
IPv6 network prefix length (if IPv6 is available), as the number of bits used for the mask. The maximum prefix length is 128.
IPv4 gateway for the interface
IPv6 gateway 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
This data type stores network interface data that the client passes to the NET MGR service when informing it about a connected interface. Both IPv4 and IPv6 connections are supported.