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

Method tcp_reassemble

scapy/contrib/postgres.py:167–175  ·  view source on GitHub ↗
(cls, data, metadata)

Source from the content-addressed store, hash-verified

165
166 @classmethod
167 def tcp_reassemble(cls, data, metadata):
168 if data and data[0:1] == b"\x00":
169 length = struct.unpack("!I", data[0:3])[0]
170 if length == 8:
171 return SSLRequest(data)
172 else:
173 return Startup(data)
174 else:
175 return cls(data)
176
177
178class _ZeroPadding(Packet):

Callers

nothing calls this directly

Calls 2

SSLRequestClass · 0.85
StartupClass · 0.85

Tested by

no test coverage detected