Get an interface's IPv6 host address(es).
Files
net_ipv6.h/net_ipv6.c
Prototype
Arguments
if_nbr
Interface number to configure.
p_addr_tbl
Pointer to IPv6 address table that will receive the IPv6 host address(es) in host-order for this interface.
p_addr_tbl_qty
Pointer to a variable to 1) pass the size of the address table, in number of IPv6 addresses, pointed to by 'p_addr_tbl'.
2) Return the actual number of IPv6 addresses, if NO error(s)
Return 0, otherwise.
p_err
Pointer to variable that will receive the error code from this function:
NET_IPv6_ERR_NONE
NET_ERR_INIT_INCOMPLETE
NET_IPv6_ERR_INVALID_ADDR_CFG_MODE
NET_IPv6_ERR_ADDR_CFG_STATE
NET_IPv6_ERR_ADDR_TBL_FULL
NET_IPv6_ERR_ADDR_CFG_IN_USE
NET_IPv6_ERR_INVALID_ADDR_HOST
NET_IPv6_ERR_INVALID_ADDR_PREFIX_LEN
NET_IF_ERR_INVALID_IF
NET_ERR_LOCK
Returned Value
DEF_OK
, if valid IPv6 address configured.
DEF_FAIL
, otherwise.
Required Configuration
None.