Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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

Files

net_ipv4.h/net_ipv4.c

Prototype

Arguments

addr

IPv4 address to validate.

Returned Value

DEF_YES

if IP address is a Class-C IPv4 address;

DEF_NO

otherwise.

Required Configuration

None.

Notes / Warnings

IPv4 address must be in host-order.

Class-C IPv4 addresses have their most significant bits be ‘110’.

  • No labels