Home
last modified time | relevance | path

Searched refs:long_to_ip (Results 1 – 2 of 2) sorted by relevance

/external/autotest/client/common_lib/
Dutils_unittest.py53 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')
Dutils.py360 def long_to_ip(number): function
371 return "%s/%s" % (long_to_ip(masked_ip), mask_bits)