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

Method sixtofour

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

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

Callers

nothing calls this directly

Calls 1

IPv4AddressClass · 0.85

Tested by

no test coverage detected