Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10918791091879 NetIP_IsAddrClassB() Anchor12648631264863 Validate an IP Validate an IPv4 address as a Class-B IP IPv4 address. Anchor10918811091881

Files

...

10918821091882net_ipipv4.h/net_ipipv4.c Anchor10918831091883

Prototype

CPU_BOOLEAN NetIP
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
Anchor
11234821123482
Code Block

          CPU_BOOLEAN NetIPv4_IsAddrClassB(NET_
IP
IPv4_ADDR addr);

...

Arguments

...

addr Anchor12558311255831 IP

IPv4 address to validate.

...

Returned Value

Anchor10918881091888DEF_YES Anchor12558381255838

if

...

IPv4 address is a Class-B

...

IPv4 address;

Anchor10918891091889DEF_NO Anchor12558451255845

otherwise.

...

Required Configuration

...

None. Anchor10918921091892

Notes / Warnings

Anchor10918931091893 IP IPv4 address must be in host-order. Anchor

10918941091894Class-B IP IPv4 addresses have their most significant bits be ‘10’.