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

Method ipv4_mapped

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

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

Callers

nothing calls this directly

Calls 1

IPv4AddressClass · 0.85

Tested by

no test coverage detected