Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
215
class
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
223
class
Integer32 (SignedIntField):
Callers
nothing calls this directly
Calls
2
plain_str
Function · 0.90
bytes_hex
Function · 0.90
Tested by
no test coverage detected