[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78491] [Ruby trunk Feature#10912] Add method(s) to IPAddr for determining whether an address is link local
From:
put.a.feud.pike011235@...
Date:
2016-12-05 02:13:25 UTC
List:
ruby-core #78491
Issue #10912 has been updated by Teppei Fukuda.
Is there any progress?
In RFC 4291 2.4, the type of an IPv6 address is defined, as follows:
Address type Binary prefix IPv6 notation Section
------------ ------------- ------------- -------
Unspecified 00...0 (128 bits) ::/128 2.5.2
Loopback 00...1 (128 bits) ::1/128 2.5.3
Multicast 11111111 FF00::/8 2.7
Link-Local unicast 1111111010 FE80::/10 2.5.6
Global Unicast (everything else)
"Private-Use" network is not defined, but the above five address types are clearly defined.
These addresses are also defined in IPv4 (RFC 6890 2.2.2).
Although "unspecified" network is not clearly defined in IPv4, it can be considered as 0.0.0.0/8.
Is it difficult to add methods to determine these networks?
If it is not good to mix IPv4 and IPv6, I think there is a way to separate method names(like ipv4_linklocal? and ipv6_linklocal?)
----------------------------------------
Feature #10912: Add method(s) to IPAddr for determining whether an address is link local
https://bugs.ruby-lang.org/issues/10912#change-61870
* Author: Hal Brodigan
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
I was surprised to find that IPAddr has no methods for determining whether an address is a link local address (ie RFC1918 or RFC5735). This would make it easy to blacklist local IP addresses from services.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>