docs/cidrnetmask: Address confusing note about IPv6 (#37029)

pull/37042/head
Radek Simko 12 months ago committed by GitHub
parent 2a110bb78a
commit ee3a518fd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save