Searched refs:ip_to_long (Results 1 – 2 of 2) sorted by relevance
31 self.assertEqual(base_utils.ip_to_long('0.0.0.0'), 0)32 self.assertEqual(base_utils.ip_to_long('255.255.255.255'), 4294967295)33 self.assertEqual(base_utils.ip_to_long('192.168.0.1'), 3232235521)34 self.assertEqual(base_utils.ip_to_long('1.2.4.8'), 16909320)
301 def ip_to_long(ip): function316 masked_ip = ip_to_long(ip) & create_subnet_mask(mask_bits)