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

Method sixtofour

Lib/ipaddress.py:2190–2200  ·  view source on GitHub ↗

Return the IPv4 6to4 embedded address. Returns: The IPv4 6to4-embedded address if present or None if the address doesn't appear to contain a 6to4 embedded address.

(self)

Source from the content-addressed store, hash-verified

2188
2189 @property
2190 def sixtofour(self):
2191 """Return the IPv4 6to4 embedded address.
2192
2193 Returns:
2194 The IPv4 6to4-embedded address if present or None if the
2195 address doesn't appear to contain a 6to4 embedded address.
2196
2197 """
2198 if (self._ip >> 112) != 0x2002:
2199 return None
2200 return IPv4Address((self._ip >> 80) & 0xFFFFFFFF)
2201
2202
2203class IPv6Interface(IPv6Address):

Callers

nothing calls this directly

Calls 1

IPv4AddressClass · 0.85

Tested by

no test coverage detected