Home
last modified time | relevance | path

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

/external/autotest/client/common_lib/
Dutils_unittest.py41 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)
Dutils.py322 def ip_to_long(ip): function
337 masked_ip = ip_to_long(ip) & create_subnet_mask(mask_bits)