From: Bryan Richardson Date: 2008-01-16T14:02:38+09:00 Subject: Problem with IPAddr ------=_Part_19821_2417228.1200459764760 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello all, I'm having a problem with IPAddr, and I'm hoping someone can explain it to me. I've done the following test, and I get the results shown below. irb(main):001:0> require 'ipaddr' => true irb(main):002:0> net_1 = IPAddr.new("192.168.0.0/16") => # irb(main):003:0> net_2 = IPAddr.new("192.168.0.0/24") => # irb(main):004:0> net_1.include?(net_2) => true irb(main):005:0> net_2.include?(net_1) => true irb(main):006:0> I understand how net_1 can include net_2, but why does net_2 include net_1?! Thanks in advance! -- BTR ------=_Part_19821_2417228.1200459764760--