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

Method ipv4_mapped

Lib/ipaddress.py:2162–2172  ·  view source on GitHub ↗

Return the IPv4 mapped address. Returns: If the IPv6 address is a v4 mapped address, return the IPv4 mapped address. Return None otherwise.

(self)

Source from the content-addressed store, hash-verified

2160
2161 @property
2162 def ipv4_mapped(self):
2163 """Return the IPv4 mapped address.
2164
2165 Returns:
2166 If the IPv6 address is a v4 mapped address, return the
2167 IPv4 mapped address. Return None otherwise.
2168
2169 """
2170 if (self._ip >> 32) != 0xFFFF:
2171 return None
2172 return IPv4Address(self._ip & 0xFFFFFFFF)
2173
2174 @property
2175 def teredo(self):

Callers

nothing calls this directly

Calls 1

IPv4AddressClass · 0.85

Tested by

no test coverage detected