Validate an IPv4 address as a valid IPv4 host address.
Files
net_ipv4.h/net_ipv4.c
Prototype
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 section C-12-21)
- Specified Host
- Localhost (see section C-12-18)
- Limited Broadcast (see section C-12-12)
- Directed Broadcast