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

Method i2m

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

Source from the content-addressed store, hash-verified

1013 return pkt.route()[1]
1014
1015 def i2m(self, pkt, x):
1016 # type: (Optional[Packet], Optional[Union[str, Net6]]) -> bytes
1017 if x is None and pkt is not None:
1018 x = self.__findaddr(pkt)
1019 return super(SourceIP6Field, self).i2m(pkt, x)
1020
1021 def i2h(self, pkt, x):
1022 # type: (Optional[Packet], Optional[Union[str, Net6]]) -> str

Callers

nothing calls this directly

Calls 2

__findaddrMethod · 0.95
i2mMethod · 0.45

Tested by

no test coverage detected