From: Austin Ziegler Date: 2005-01-07T22:37:42+09:00 Subject: Re: Standardlib "ipaddr.rb" On Fri, 7 Jan 2005 17:11:25 +0900, Markus Werner wrote: > On Wednesday 05 January 2005 14:59, Florian G. Pflug wrote: > Hi Florian, > > > IpNetwork: Represents a network/ip-prefix, e.g. > > 192.168.0.0/16, or > > 192.168.1.0/24, but not 192.168.1.1/24, because it's not a > > network. > > IpAddress: Represents an ip-address, without netmask > > IpInterface: Represents an ip-address in a certain network, e.g > > 192.168.1.1/24. > > I'm not sure if 192.168.0.0 is a valid ip-address in the > > 192.168.0.0/24 network... > > Just to think about : 192.168.1.1/32 or fe00::1/128 is a valid notation for a > single IP Address. > > I will write my own Classes for IP Addresses now, and hope that the IPAddr lib > get changed in the future. Why not modify the IPAddr lib and offer your changes as a patch to the author/maintainer? -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca