NetIPv4_IsValidAddrHost

NetIPv4_IsValidAddrHost

Validate an IPv4 address as a valid IPv4 host address.

Files

net_ipv4.h/net_ipv4.c

Prototype

CPU_BOOLEAN NetIPv4_IsValidAddrHost(NET_IPv4_ADDR addr_host);

Arguments

addr_host

IPv4 host address to validate.

Returned Value

DEF_YES

if valid IPv4 host address;

DEF_NO

otherwise.

Required Configuration

None.

Notes / Warnings

IPv4 address must be in host-order. A valid IPv4 host address must not be one of the following:

  • This Host (see function NetIPv4_IsAddrThisHost)

  • Specified Host

  • Localhost (see function NetIPv4_IsAddrLocalHost)

  • Limited Broadcast (see function NetIPv4_IsAddrBroadcast)

  • Directed Broadcast