|
|
|
@ -20,8 +20,8 @@ cidrnetmask(prefix)
|
|
|
|
The result is a subnet address formatted in the conventional dotted-decimal
|
|
|
|
The result is a subnet address formatted in the conventional dotted-decimal
|
|
|
|
IPv4 address syntax, as expected by some software.
|
|
|
|
IPv4 address syntax, as expected by some software.
|
|
|
|
|
|
|
|
|
|
|
|
CIDR notation is the only valid notation for IPv6 addresses, so `cidrnetmask`
|
|
|
|
The `cidrnetmask` function only accepts IPv4 addresses in CIDR notation.
|
|
|
|
produces an error if given an IPv6 address.
|
|
|
|
If you use an IPv6 address, `cidrnetmask` returns an error.
|
|
|
|
|
|
|
|
|
|
|
|
-> **Note:** As a historical accident, this function interprets IPv4 address
|
|
|
|
-> **Note:** As a historical accident, this function interprets IPv4 address
|
|
|
|
octets that have leading zeros as decimal numbers, which is contrary to some
|
|
|
|
octets that have leading zeros as decimal numbers, which is contrary to some
|
|
|
|
|