Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `private?' for #<IPAddress::IPv6:0x00000112b61648> #54

Open
tetherit opened this issue Jan 17, 2015 · 5 comments
Open
Assignees

Comments

@tetherit
Copy link

Why is there no "private?" method for IPv6 addresses? - this is annoying because I have to manually check if the object responds to :private before calling it :(

@msimkins
Copy link

There is no real definition of a 'private' address in IPv6, you have Global, Unique Local (ULA) blocks which could be thought of a 'private', or Multicast. In fact the IPv4 definition of 'Private' (RFC1918) is only private by the fact that no ISPs route them (although you do see them on the internet from time to time)

@mikemackintosh
Copy link
Collaborator

Not specific to this issue, but, I do see this as being a very important part of networking and SDN.

Taking a look at rfc5735 and rfc5156 for IPv4 and IPv6 respectively, these special-use addresses should have some sort of interface within the IPv4 and IPv6 classes.

Open to thoughts on implementation and benefits..

@mikemackintosh mikemackintosh self-assigned this Mar 24, 2015
@msimkins
Copy link

There is no real concept of Private in IPv6, there is ULA (fc00::/7) which are technically private (well Not Routable anyway),

On 17 Jan 2015, at 22:13, xanview [email protected] wrote:

Why is there no "private?" method for IPv6 addresses? - this is annoying because I have to manually check if the object responds to :private before calling it :(


Reply to this email directly or view it on GitHub #54.

@mikemackintosh
Copy link
Collaborator

Agreed on the #private? method.

I'd like to solicit some feedback in regards to having methods like #is_ula? and if it would be beneficial? Playing off this, we can also do #is_teredo?, #is_6to4?, #is_orchid?, #is_doc?, etc..

@msimkins
Copy link

That would be a good idea, I did add to another gem an address_scope method that returned a document string based on the address type, but the addition of something like this would be beneficial to the gem I believe

On 24 Mar 2015, at 16:39, Mike Simkins [email protected] wrote:

There is no real concept of Private in IPv6, there is ULA (fc00::/7) which are technically private (well Not Routable anyway),

On 17 Jan 2015, at 22:13, xanview <[email protected] mailto:[email protected]> wrote:

Why is there no "private?" method for IPv6 addresses? - this is annoying because I have to manually check if the object responds to :private before calling it :(


Reply to this email directly or view it on GitHub #54.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants