NetIF_AddrHW_IsValid

Validate a network interface hardware address.

Files

net_if.h/net_if.c

Prototype

          CPU_BOOLEAN NetIF_AddrHW_IsValid(NET_IF_NBR   if_nbr,
                                           CPU_INT08U  *p_addr_hw,
                                           NET_ERR     *p_err);

Arguments

if_nbr

Network interface number to validate the hardware address.

p_addr_hw

Pointer to a network interface hardware address.

p_err

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

NET_IF_ERR_NONE
NET_IF_ERR_NULL_PTR
NET_IF_ERR_NULL_FNCT
NET_IF_ERR_INVALID_IF
NET_IF_ERR_INVALID_CFG
NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

DEF_YES

if hardware address valid;

DEF_NO

otherwise.

Required Configuration

None.

Notes / Warnings

None.