Validate an IP IPv4 address as a valid IP IPv4 host address.
Files
net_ipipv4.h/net_ipipv4.c
Prototype
Code Block |
---|
CPU_BOOLEAN NetIPv4_IsValidAddrHost(NET_IPv4_ADDR addr_host); |
Arguments
addr_host
IP IPv4 host address to validate.
Returned Value
DEF_YES
if valid IP IPv4 host address;
DEF_NO
otherwise.
Required Configuration
None.
Notes / Warnings
IP IPv4 address must be in host-order. A valid IP IPv4 host address must not be one of the following:
- This Host (see section C-12-21function NetIPv4_IsAddrThisHost)
- Specified Host
- Localhost (see section C-12-18function NetIPv4_IsAddrLocalHost)
- Limited Broadcast (see section C-12-12function NetIPv4_IsAddrBroadcast)
- Directed Broadcast