MCPcopy Index your code
hub / github.com/python/cpython / teredo

Method teredo

Lib/ipaddress.py:2175–2187  ·  view source on GitHub ↗

Tuple of embedded teredo IPs. Returns: Tuple of the (server, client) IPs or None if the address doesn't appear to be a teredo address (doesn't start with 2001::/32)

(self)

Source from the content-addressed store, hash-verified

2173
2174 @property
2175 def teredo(self):
2176 """Tuple of embedded teredo IPs.
2177
2178 Returns:
2179 Tuple of the (server, client) IPs or None if the address
2180 doesn't appear to be a teredo address (doesn't start with
2181 2001::/32)
2182
2183 """
2184 if (self._ip >> 96) != 0x20010000:
2185 return None
2186 return (IPv4Address((self._ip >> 64) & 0xFFFFFFFF),
2187 IPv4Address(~self._ip & 0xFFFFFFFF))
2188
2189 @property
2190 def sixtofour(self):

Callers

nothing calls this directly

Calls 1

IPv4AddressClass · 0.85

Tested by

no test coverage detected