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

Method i2repr

scapy/fields.py:3404–3406  ·  view source on GitHub ↗
(self, pkt, val)

Source from the content-addressed store, hash-verified

3402 return int_part + frac_part.normalize(int(math.log10(pw)))
3403
3404 def i2repr(self, pkt, val):
3405 # type: (Optional[Packet], int) -> str
3406 return str(self.i2h(pkt, val))
3407
3408
3409# Base class for IPv4 and IPv6 Prefixes inspired by IPField and IP6Field.

Callers

nothing calls this directly

Calls 1

i2hMethod · 0.95

Tested by

no test coverage detected