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.py48 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')
Dutils.py327 def long_to_ip(number): function
338 return "%s/%s" % (long_to_ip(masked_ip), mask_bits)