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