NetIPv4_IsAddrsCfgdOnIF

Check if any IPv4 address(es) are configured on an interface.

Files

net_ipv4.h/net_ipv4.c

Prototype

          CPU_BOOLEAN NetIPv4_IsAddrsHostCfgdOnIF(NET_IF_NBR   if_nbr,
                                                  NET_ERR     *p_err);

Arguments

if_nbr

Interface number to check for configured IPv4 host address(es).

p_err

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

NET_IPv4_ERR_NONE
NET_IF_ERR_INVALID_IF
NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

DEF_YES

if any IPv4 host address(es) are configured on the interface;

DEF_NO

otherwise.

Required Configuration

None.

Notes / Warnings

None.