Common network helper functions. More...
Common network helper functions.
Files | |
file | utils.h |
Common network interface API definitions. | |
Functions | |
int | netutils_get_ipv4 (ipv4_addr_t *addr, const char *hostname) |
Parse an IPv4 address / hostname string. | |
int | netutils_get_ipv6 (ipv6_addr_t *addr, netif_t **netif, const char *hostname) |
Parse an IPv6 address / hostname string. | |
int netutils_get_ipv4 | ( | ipv4_addr_t * | addr, |
const char * | hostname | ||
) |
Parse an IPv4 address / hostname string.
If the DNS sock API module is used, this will attempt to resolve hostnames via DNS to IPv4 addresses.
[out] | addr | IPv4 address of the host |
[in] | hostname | IPv4 address string or hostname |
int netutils_get_ipv6 | ( | ipv6_addr_t * | addr, |
netif_t ** | netif, | ||
const char * | hostname | ||
) |
Parse an IPv6 address / hostname string.
If the DNS sock API module is used, this will attempt to resolve hostnames via DNS to IPv6 addresses.
[out] | addr | IPv6 address of the host |
[out] | netif | Interface if address is link-local |
[in] | hostname | IPv6 address string or hostname |