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

Method i2h

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

Source from the content-addressed store, hash-verified

930 return super(SourceIPField, self).i2m(pkt, x)
931
932 def i2h(self, pkt, x):
933 # type: (Optional[Packet], Optional[Union[str, Net]]) -> str
934 if x is None and pkt is not None:
935 x = self.__findaddr(pkt)
936 return super(SourceIPField, self).i2h(pkt, x)
937
938
939class IP6Field(Field[Optional[Union[str, Net6]], bytes]):

Callers

nothing calls this directly

Calls 2

__findaddrMethod · 0.95
i2hMethod · 0.45

Tested by

no test coverage detected