Validate an IPv4 address as a valid, configurable IPv4 host address.
Files
net_ipv4.h/net_ipv4.c
Prototype
Code Block |
---|
CPU_BOOLEAN NetIPv4_IsValidAddrHostCfgd(NET_IPv4_ADDR addr_host,
NET_IPv4_ADDR addr_subnet_mask); |
Arguments
addr_host
IPv4 host address to validate.
...
IPv4 host address subnet mask.
Returned Value
DEF_YES
if configurable IPv4 host address;
DEF_NO
otherwise.
Required Configuration
None.
Notes / Warnings
IPv4 addresses must be in host-order.
A configurable 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
- Subnet broadcast