ipv4BroadcastAddress
ipv4BroadcastAddress(
prefix):BitAddress|null
Defined in: packages/net-address/src/ipv4/ipv4-prefix.ts:36
The directed broadcast address — the prefix’s highest address.
Parameters
Section titled “Parameters”prefix
Section titled “prefix”Returns
Section titled “Returns”BitAddress | null
null for /31 and /32, which have none: RFC 3021 gives a /31
two host addresses and no broadcast, and a /32 is one host.
Throws
Section titled “Throws”RangeError When the prefix is not over a 32-bit address.