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

Class ErrorResponse

scapy/contrib/postgres.py:354–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352
353
354class ErrorResponse(_ZeroPadding):
355 name = "Error Response"
356 fields_desc = [
357 ByteTagField(b"E"),
358 FieldLenField(
359 "len", None, length_of="error_fields", fmt="I", adjust=lambda pkt, x: x + 5
360 ),
361 FieldListField(
362 "error_fields",
363 [],
364 ErrorResponseField("value", None),
365 length_from=lambda pkt: pkt.len - 5,
366 ),
367 ByteField("terminator", None),
368 ]
369
370
371class Terminate(_ZeroPadding):

Callers

nothing calls this directly

Calls 5

FieldLenFieldClass · 0.90
FieldListFieldClass · 0.90
ByteFieldClass · 0.90
ByteTagFieldClass · 0.85
ErrorResponseFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…