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

Class Startup

scapy/contrib/postgres.py:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88class Startup(Packet):
89 name = "Startup Request Packet"
90 fields_desc = [
91 FieldLenField(
92 "len", None, length_of="options", fmt="I", adjust=lambda pkt, x: x + 8
93 ),
94 ShortField("protocol_version_major", 3),
95 ShortField("protocol_version_minor", 0),
96 _DictStrField("options", None),
97 ]
98
99
100class _FieldsLenField(Field[int, int]):

Callers 1

tcp_reassembleMethod · 0.85

Calls 3

FieldLenFieldClass · 0.90
ShortFieldClass · 0.90
_DictStrFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…