NetIPv4_IsAddrClassA

Validate an IPv4 address as a Class-A IPv4 address.

Files

net_ipv4.h/net_ipv4.c

Prototype

          CPU_BOOLEAN NetIPv4_IsAddrClassA(NET_IPv4_ADDR addr);

Arguments

addr

IPv4 address to validate.

Returned Value

DEF_YES

if IPv4 address is a Class-A IPv4 address;

DEF_NO

otherwise.

Required Configuration

None.

Notes / Warnings

IPv4 address must be in host-order.

Class-A IPv4 addresses have their most significant bit be ‘0’.