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

Method i2m

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

Source from the content-addressed store, hash-verified

924 return pkt.route()[1] or conf.route.route()[1]
925
926 def i2m(self, pkt, x):
927 # type: (Optional[Packet], Optional[Union[str, Net]]) -> bytes
928 if x is None and pkt is not None:
929 x = self.__findaddr(pkt)
930 return super(SourceIPField, self).i2m(pkt, x)
931
932 def i2h(self, pkt, x):
933 # type: (Optional[Packet], Optional[Union[str, Net]]) -> str

Callers

nothing calls this directly

Calls 2

__findaddrMethod · 0.95
i2mMethod · 0.45

Tested by

no test coverage detected