Skip to content

ipv6PrefixFromIpv4Prefix

ipv6PrefixFromIpv4Prefix(prefix): BitPrefix

Defined in: packages/net-address/src/ipv6/ipv4-mapped.ts:82

Widens an IPv4 prefix to its IPv4-mapped counterpart: 10.0.0.0/8 becomes ::ffff:10.0.0.0/104.

BitPrefix

BitPrefix

RangeError When the prefix is not over a 32-bit address.