def cmp(other)
			if (!other.kind_of?(IPv4Net))
				raise ArgumentError, "Expected an IPv4Net object for 'other' but got a #{other.class}."
			end
			cmp = self.network.cmp(other.network)
			if (cmp != 0)
				return cmp
			end
			return self.netmask.cmp(other.netmask)
		end
def cmp(other)
			if (!other.kind_of?(IPv4Net))
				raise ArgumentError, "Expected an IPv4Net object for 'other' but got a #{other.class}."
			end
			cmp = self.network.cmp(other.network)
			if (cmp != 0)
				return cmp
			end
			return self.netmask.cmp(other.netmask)
		end
cmp compares equality with another IPv4Net. Return:
 * 1 if this IPv4Net is numerically greater
 * 0 if the two are equal
 * -1 if this IPv4Net is numerically less

 The comparison is initially performed on using the cmp() method of the network address, however, in cases where the network
 addresses are identical then the netmasks will be compared with the cmp() method of the netmask.