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

Method i2m

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

Source from the content-addressed store, hash-verified

886 return x
887
888 def i2m(self, pkt, x):
889 # type: (Optional[Packet], Optional[Union[str, Net]]) -> bytes
890 if x is None:
891 return b'\x00\x00\x00\x00'
892 return inet_aton(plain_str(x))
893
894 def m2i(self, pkt, x):
895 # type: (Optional[Packet], bytes) -> str

Callers

nothing calls this directly

Calls 2

inet_atonFunction · 0.90
plain_strFunction · 0.90

Tested by

no test coverage detected