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

Method i2repr

scapy/contrib/diameter.py:216–220  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

214
215class OctetString (StrLenField):
216 def i2repr(self, pkt, x):
217 try:
218 return plain_str(x)
219 except BaseException:
220 return bytes_hex(x)
221
222
223class Integer32 (SignedIntField):

Callers

nothing calls this directly

Calls 2

plain_strFunction · 0.90
bytes_hexFunction · 0.90

Tested by

no test coverage detected