Lines Matching refs:netmask
655 if self.netmask != other.netmask:
656 return self.netmask < other.netmask
663 int(self.netmask) == int(other.netmask))
668 return hash(int(self.network_address) ^ int(self.netmask))
703 x = self._address_class(int(self.netmask) ^ self._ALL_ONES)
713 return '%s/%s' % (self.network_address, self.netmask)
853 if self.netmask < other.netmask:
855 if self.netmask > other.netmask:
867 return (self._version, self.network_address, self.netmask)
959 int(self.network_address) & (int(self.netmask) << prefixlen_diff),
1112 netmask = IPv4Address(cls._ip_int_from_prefix(prefixlen))
1113 cls._netmask_cache[arg] = netmask, prefixlen
1192 def _is_valid_netmask(self, netmask): argument
1204 mask = netmask.split('.')
1218 netmask = int(netmask)
1221 return 0 <= netmask <= self._max_prefixlen
1396 self.netmask = self.network.netmask
1406 self.netmask = self.network.netmask
1454 self.netmask)
1532 self.netmask, self._prefixlen = self._make_netmask(mask)
1534 if packed & int(self.netmask) != packed:
1539 int(self.netmask))
1627 netmask = IPv6Address(cls._ip_int_from_prefix(prefixlen))
1628 cls._netmask_cache[arg] = netmask, prefixlen
2072 self.netmask = self.network.netmask
2079 self.netmask = self.network.netmask
2128 self.netmask)
2210 self.netmask, self._prefixlen = self._make_netmask(mask)
2212 if packed & int(self.netmask) != packed:
2217 int(self.netmask))