Searched refs:hostmask (Results 1 - 2 of 2) sorted by relevance
/third_party/python/Lib/ |
H A D | ipaddress.py | 501 """Turn a netmask/hostmask string into a prefix length 504 ip_str: The netmask/hostmask to be converted 510 NetmaskValueError: If the input is not a valid netmask/hostmask 512 # Parse the netmask/hostmask like an IP address. 526 # Invert the bits, and try matching a /0+1+/ hostmask instead. 761 int(self.hostmask)) 764 def hostmask(self): member in _BaseNetwork 777 return '%s/%s' % (self.network_address, self.hostmask) 977 step = (int(self.hostmask) + 1) >> prefixlen_diff 1176 # Check for a netmask or hostmask i 1404 def hostmask(self): global() member in IPv4Interface 2109 def hostmask(self): global() member in IPv6Interface [all...] |
/third_party/python/Lib/test/ |
H A D | test_ipaddress.py | 559 self.assertEqual(str(net.hostmask), '0.0.0.0') 598 # Generate and re-parse the expanded hostmask. The ambiguous 603 str(self.factory('0.0.0.0/%s' % net.hostmask)), net_str) 706 self.assertEqual(str(net.hostmask), '::') 713 self.assertEqual(str(scoped_net.hostmask), '::') 1262 self.assertEqual(str(self.ipv6_network.hostmask), 1268 self.assertEqual(str(self.ipv6_scoped_network.hostmask), 2562 self.assertNotIn('hostmask', self.ipv4_network.__dict__) 2567 self.assertEqual(self.ipv4_network.hostmask, 2572 self.assertIn('hostmask', sel [all...] |
Completed in 6 milliseconds