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

Class DataRow

scapy/contrib/postgres.py:306–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304
305
306class DataRow(_ZeroPadding):
307 name = "Data Row"
308 fields_desc = [
309 ByteTagField(b"D"),
310 FieldLenField(
311 "len", None, fmt="I", length_of="data", adjust=lambda pkt, x: len(pkt) - 1
312 ),
313 FieldLenField("numfields", 0),
314 PacketListField(
315 "data",
316 [],
317 SignedIntStrPair,
318 count_from=lambda pkt: pkt.numfields,
319 ),
320 ]
321
322
323# See https://www.postgresql.org/docs/current/protocol-error-fields.html

Callers

nothing calls this directly

Calls 3

FieldLenFieldClass · 0.90
PacketListFieldClass · 0.90
ByteTagFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…