Home
last modified time | relevance | path

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

/external/autotest/client/common_lib/
Dbase_utils_unittest.py31 self.assertEqual(base_utils.ip_to_long('0.0.0.0'), 0)
32 self.assertEqual(base_utils.ip_to_long('255.255.255.255'), 4294967295)
33 self.assertEqual(base_utils.ip_to_long('192.168.0.1'), 3232235521)
34 self.assertEqual(base_utils.ip_to_long('1.2.4.8'), 16909320)
Dbase_utils.py301 def ip_to_long(ip): function
316 masked_ip = ip_to_long(ip) & create_subnet_mask(mask_bits)