MCPcopy Index your code
hub / github.com/RustPython/RustPython / teredo

Method teredo

Lib/ipaddress.py:2174–2186  ·  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

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

Callers

nothing calls this directly

Calls 1

IPv4AddressClass · 0.85

Tested by

no test coverage detected