MCPcopy Create free account
hub / github.com/secdev/scapy / i2repr

Method i2repr

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

Source from the content-addressed store, hash-verified

900 return self.h2i(pkt, x)
901
902 def i2repr(self, pkt, x):
903 # type: (Optional[Packet], Union[str, Net]) -> str
904 if isinstance(x, _ScopedIP) and x.scope:
905 return repr(x)
906 r = self.resolve(self.i2h(pkt, x))
907 return r if isinstance(r, str) else repr(r)
908
909 def randval(self):
910 # type: () -> RandIP

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.95
i2hMethod · 0.95

Tested by

no test coverage detected