Searched refs:ip_int (Results 1 – 1 of 1) sorted by relevance
448 def _prefix_from_ip_int(cls, ip_int): argument460 trailing_zeroes = _count_righthand_zero_bits(ip_int,463 leading_ones = ip_int >> trailing_zeroes467 details = ip_int.to_bytes(byteslen, 'big')517 ip_int = cls._ip_int_from_string(ip_str)525 return cls._prefix_from_ip_int(ip_int)530 ip_int ^= cls._ALL_ONES532 return cls._prefix_from_ip_int(ip_int)1239 def _string_from_ip_int(cls, ip_int): argument1249 return '.'.join(map(str, ip_int.to_bytes(4, 'big')))[all …]