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

Method any2i

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

Source from the content-addressed store, hash-verified

1563
1564class _PacketFieldSingle(_PacketField[K]):
1565 def any2i(self, pkt, x):
1566 # type: (Optional[Packet], Any) -> K
1567 if x and pkt and hasattr(x, "add_parent"):
1568 cast("Packet", x).add_parent(pkt)
1569 return super(_PacketFieldSingle, self).any2i(pkt, x)
1570
1571 def getfield(self,
1572 pkt, # type: Packet

Callers

nothing calls this directly

Calls 2

add_parentMethod · 0.45
any2iMethod · 0.45

Tested by

no test coverage detected