Home
last modified time | relevance | path

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

/external/autotest/client/common_lib/
Dutils_unittest.py55 self.assertEqual(utils.create_subnet_mask(0), 0)
56 self.assertEqual(utils.create_subnet_mask(32), 4294967295)
57 self.assertEqual(utils.create_subnet_mask(25), 4294967168)
Dutils.py332 def create_subnet_mask(bits): function
337 masked_ip = ip_to_long(ip) & create_subnet_mask(mask_bits)