Searched refs:long_to_ip (Results 1 – 2 of 2) sorted by relevance
48 self.assertEqual(utils.long_to_ip(0), '0.0.0.0')49 self.assertEqual(utils.long_to_ip(4294967295), '255.255.255.255')50 self.assertEqual(utils.long_to_ip(3232235521), '192.168.0.1')51 self.assertEqual(utils.long_to_ip(16909320), '1.2.4.8')
327 def long_to_ip(number): function338 return "%s/%s" % (long_to_ip(masked_ip), mask_bits)