MCPcopy 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
60class PPI(Packet):

Callers 15

getfieldMethod · 0.45
getfieldMethod · 0.45
getfieldMethod · 0.45
addfieldMethod · 0.45
randvalMethod · 0.45
i2mMethod · 0.45
getfieldMethod · 0.45
getfieldMethod · 0.45
addfieldMethod · 0.45
getfieldMethod · 0.45
getfieldMethod · 0.45
getfieldMethod · 0.45

Calls 1

warningFunction · 0.90

Tested by

no test coverage detected