22 #ifndef ETCPAL_NETINT_H_
23 #define ETCPAL_NETINT_H_
27 #include "etcpal/common.h"
28 #include "etcpal/inet.h"
109 size_t* num_netints);
etcpal_error_t
A set of error codes that can be returned by library functions.
Definition: error.h:49
etcpal_iptype_t
Used to identify the type of IP address contained in a EtcPalIpAddr.
Definition: inet.h:53
bool etcpal_netint_is_up(unsigned int netint_index)
Determine whether a network interface is currently up and running.
Definition: netint.c:352
etcpal_error_t etcpal_netint_refresh_interfaces()
Refresh the list of network interfaces.
Definition: netint.c:324
etcpal_error_t etcpal_netint_get_interface_with_ip(const EtcPalIpAddr *ip, EtcPalNetintInfo *netint)
Get the network interface that has the specified IP address.
Definition: netint.c:146
etcpal_error_t etcpal_netint_get_interface_for_dest(const EtcPalIpAddr *dest, unsigned int *netint_index)
Get the network interface that the system will choose when routing an IP packet to the specified dest...
Definition: netint.c:225
etcpal_error_t etcpal_netint_get_default_interface(etcpal_iptype_t type, unsigned int *netint_index)
Get information about the default network interface.
Definition: netint.c:179
etcpal_error_t etcpal_netint_get_interfaces(EtcPalNetintInfo *netints, size_t *num_netints)
Get a list of network interfaces on the system (or just the number of interfaces).
Definition: netint.c:90
etcpal_error_t etcpal_netint_get_interfaces_for_index(unsigned int netint_index, EtcPalNetintInfo *netints, size_t *num_netints)
Get a list of network interfaces (or just the number of interfaces) that have the index specified.
Definition: netint.c:120
An IP address.
Definition: inet.h:75
A description of a single address assigned to a network interface.
Definition: inet.h:355