ruby-changes:73625
From: Sutou <ko1@a...>
Date: Tue, 20 Sep 2022 16:10:13 +0900 (JST)
Subject: [ruby-changes:73625] e40fa6c480 (master): [DOC] socket: fix wrong sample addresses (#6372)
https://git.ruby-lang.org/ruby.git/commit/?id=e40fa6c480 From e40fa6c480b58a8d1699b24193cf67945eaec202 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei <kou@c...> Date: Tue, 20 Sep 2022 16:09:42 +0900 Subject: [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 --- ext/socket/raddrinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index b914aa6520..a4e1ed37a3 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -2192,7 +2192,7 @@ addrinfo_ipv6_multicast_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L2192 } /* - * 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) https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L2204 } /* - * Returns true for IPv6 site local address (ffc0::/10). + * Returns true for IPv6 site local address (fec0::/10). * It returns false otherwise. */ static VALUE -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/