1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] socket: fix wrong sample addresses (#6372)

IPv6 link local address is fe80::/10 not ff80::/10:

https://www.rfc-editor.org/rfc/rfc4291.html

    Link-Local unicast   1111111010           FE80::/10       2.5.6

IPv6 (deprecated) site local address is fec0::/10 not ffc0::/10:

https://www.rfc-editor.org/rfc/rfc3513.html

    Site-local unicast   1111111011           FEC0::/10       2.5.6
This commit is contained in:
Sutou Kouhei 2022-09-20 16:09:42 +09:00 committed by GitHub
parent 9de11fe796
commit e40fa6c480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-09-20 16:10:16 +09:00
Merged-By: kou <kou@clear-code.com>

View file

@ -2192,7 +2192,7 @@ addrinfo_ipv6_multicast_p(VALUE self)
}
/*
* Returns true for IPv6 link local address (ff80::/10).
* Returns true for IPv6 link local address (fe80::/10).
* It returns false otherwise.
*/
static VALUE
@ -2204,7 +2204,7 @@ addrinfo_ipv6_linklocal_p(VALUE self)
}
/*
* Returns true for IPv6 site local address (ffc0::/10).
* Returns true for IPv6 site local address (fec0::/10).
* It returns false otherwise.
*/
static VALUE