Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/secdev/scapy
/ length_from
Method
length_from
scapy/layers/ppi.py:52–57 ·
view source on GitHub ↗
(pkt)
Source
from the content-addressed store, hash-verified
50
51
@staticmethod
52
def
length_from(pkt):
53
if
not pkt.underlayer:
54
warning(
'Missing under-layer'
)
55
return
0
56
57
return
pkt.underlayer.len
58
59
60
class
PPI(Packet):
Callers
15
getfield
Method · 0.45
getfield
Method · 0.45
getfield
Method · 0.45
addfield
Method · 0.45
randval
Method · 0.45
i2m
Method · 0.45
getfield
Method · 0.45
getfield
Method · 0.45
addfield
Method · 0.45
getfield
Method · 0.45
getfield
Method · 0.45
getfield
Method · 0.45
Calls
1
warning
Function · 0.90
Tested by
no test coverage detected