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

Method do_dissect

scapy/layers/dcerpc.py:916–922  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

914 )
915
916 def do_dissect(self, s):
917 # Overload do_dissect to only include the current layer in dissection.
918 # This allows to support TrailerFields, even in the case where multiple DceRpc5
919 # packets are concatenated
920 frag_len = self.get_field("frag_len").getfield(self, s[8:10])[1]
921 s, remain = s[:frag_len], s[frag_len:]
922 return super(DceRpc5, self).do_dissect(s) + remain
923
924 def extract_padding(self, s):
925 # Now, take any data that doesn't fit in the current fragment and make it

Callers 1

do_dissectMethod · 0.45

Calls 2

get_fieldMethod · 0.80
getfieldMethod · 0.45

Tested by

no test coverage detected