Network helper functions

Common network helper functions. More...

Detailed Description

Common network helper functions.

Files

file  utils.h
 Common network interface API definitions.
 

Functions

int netutils_get_ipv6 (ipv6_addr_t *addr, netif_t **netif, const char *hostname)
 Parse an IPv6 address / hostname string. More...
 

Function Documentation

◆ netutils_get_ipv6()

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.

Parameters
[out]addrIPv6 address of the host
[out]netifInterface if address is link-local
[in]hostnameIPv6 address string or hostname
Returns
0 on success, error otherwise