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

Method do_dissect

scapy/contrib/rtsp.py:116–129  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

114 return RTSPRequest in other
115
116 def do_dissect(self, s):
117 first_line, body = _dissect_headers(self, s)
118 try:
119 Version, Status, Reason = re.split(rb"\s+", first_line, maxsplit=2)
120 self.setfieldval("Version", Version)
121 self.setfieldval("Status_Code", Status)
122 self.setfieldval("Reason_Phrase", Reason)
123 except ValueError:
124 pass
125 if body:
126 self.raw_packet_cache = s[: -len(body)]
127 else:
128 self.raw_packet_cache = s
129 return body
130
131 def mysummary(self):
132 return self.sprintf(

Callers

nothing calls this directly

Calls 2

_dissect_headersFunction · 0.90
setfieldvalMethod · 0.45

Tested by

no test coverage detected