Versions Compared

Key

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

...

NetIP_GetAddrHost()

...

12648351264835Get an interface’s configured IP host address(es). Anchor10917971091797

Files

...

net_ip.h/net_ip.c Anchor10917991091799

Prototype

...

rowspan4

...

 

Arguments

if_nbr

Interface number to get configured IP host address(es).

...

paddr_tblanchor12555791255579

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

Anchor10918081091808paddr_tbl_qty Anchor12555861255586

Pointer to a variable to:

...

...

Pass the size of the address table, in number of IP addresses, pointed to by paddr_tbl.

...

Returns the actual number of IP addresses, if no errors.

...

Returns 0, otherwise.

...

perranchor12556071255607

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

...

NET_IP_ERR_NONE

...

NET_IP_ERR_NULL_PTR

...

...

NET_IP_ERR_ADDR_NONE_AVAIL

...

NET_IP_ERR_ADDR_CFG_IN_PROGRESS

...

NET_IP_ERR_ADDR_TBL_SIZE

...

NET_IF_ERR_INVALID_IF

...

...

NET_OS_ERR_LOCK

...

Returned Value

...

DEF_OK, Anchor12557611255761

if interface’s configured IP host address(es) successfully returned;

Anchor10918221091822DEF_FAIL, Anchor12557681255768

otherwise.

...

Required Configuration

...

10918241091824None. Anchor10918251091825

Notes / Warnings

...

IP addresses returned in host-order.