MCPcopy Index your code
hub / github.com/secdev/scapy / i2m

Method i2m

scapy/fields.py:968–972  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

966 return cast(str, x)
967
968 def i2m(self, pkt, x):
969 # type: (Optional[Packet], Optional[Union[str, Net6]]) -> bytes
970 if x is None:
971 x = "::"
972 return inet_pton(socket.AF_INET6, plain_str(x))
973
974 def m2i(self, pkt, x):
975 # type: (Optional[Packet], bytes) -> str

Callers

nothing calls this directly

Calls 2

inet_ptonFunction · 0.90
plain_strFunction · 0.90

Tested by

no test coverage detected