Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Get an interface's IPv6 host address(es).

Files

net_ipv6.h/net_ipv6.c

Prototype

Code Block

          CPU_BOOLEAN NetIPv6_GetAddrHost(NET_IF_NBR         if_nbr,
                                          NET_IPv6_ADDRS    *p_addr_tbl,
                                          NET_IP_ADDRS_QTY   p_addr_tbl_qty,
                                          NET_ERR           *p_err);

Arguments

if_nbr

Interface number to configureget address(es) from.

p_addr_tbl

Pointer to IPv6 address table that will receive the IPv6 host address(es) in host-order for this interface.

...

Pointer to variable that will receive the error code from this function:

NET_IPv6_ERR_NONE
NET_INIT_ERR_INITNOT_INCOMPLETECOMPLETED
NET_IPv6ERR_ERRFAULT_NULL_PTR
NET_IPv6_ERR_ADDR_NONE_AVAIL
NET_IPv6_ERR_ADDR_CFG_IN_PROGRESS
NET_IPv6_ERR_ADDR_TBL_SIZE
NET_IF_ERR_INVALID_IF

NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

DEF_OK, if interface's IPv6 host address(s) successfully returned..

DEF_FAIL, otherwise.

Required Configuration

None.

Notes / Warnings

None.