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

Method any2i

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

Source from the content-addressed store, hash-verified

815 return str2mac(x)
816
817 def any2i(self, pkt, x):
818 # type: (Optional[Packet], Any) -> str
819 if isinstance(x, bytes) and len(x) == 6:
820 return self.m2i(pkt, x)
821 return cast(str, x)
822
823 def i2repr(self, pkt, x):
824 # type: (Optional[Packet], Optional[str]) -> str

Callers

nothing calls this directly

Calls 1

m2iMethod · 0.95

Tested by

no test coverage detected