Searched refs:long_to_ip (Results 1 – 2 of 2) sorted by relevance
53 self.assertEqual(utils.long_to_ip(0), '0.0.0.0')54 self.assertEqual(utils.long_to_ip(4294967295), '255.255.255.255')55 self.assertEqual(utils.long_to_ip(3232235521), '192.168.0.1')56 self.assertEqual(utils.long_to_ip(16909320), '1.2.4.8')
360 def long_to_ip(number): function371 return "%s/%s" % (long_to_ip(masked_ip), mask_bits)