Searched refs:ip_to_long (Results 1 – 2 of 2) sorted by relevance
41 self.assertEqual(utils.ip_to_long('0.0.0.0'), 0)42 self.assertEqual(utils.ip_to_long('255.255.255.255'), 4294967295)43 self.assertEqual(utils.ip_to_long('192.168.0.1'), 3232235521)44 self.assertEqual(utils.ip_to_long('1.2.4.8'), 16909320)
322 def ip_to_long(ip): function337 masked_ip = ip_to_long(ip) & create_subnet_mask(mask_bits)