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

Method i2m

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

Source from the content-addressed store, hash-verified

1034 DestField.__init__(self, name, default)
1035
1036 def i2m(self, pkt, x):
1037 # type: (Optional[Packet], Optional[Union[str, Net6]]) -> bytes
1038 if x is None and pkt is not None:
1039 x = self.dst_from_pkt(pkt)
1040 return IP6Field.i2m(self, pkt, x)
1041
1042 def i2h(self, pkt, x):
1043 # type: (Optional[Packet], Optional[Union[str, Net6]]) -> str

Callers

nothing calls this directly

Calls 2

dst_from_pktMethod · 0.80
i2mMethod · 0.45

Tested by

no test coverage detected