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

Class NoticeResponse

scapy/contrib/postgres.py:556–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554
555
556class NoticeResponse(_ZeroPadding):
557 name = "Notice Response"
558 fields_desc = [
559 ByteTagField(b"N"),
560 FieldLenField(
561 "len", None, length_of="notice_fields", fmt="I", adjust=lambda pkt, x: x + 5
562 ),
563 FieldListField(
564 "notice_fields",
565 [],
566 ErrorResponseField("value", None),
567 length_from=lambda pkt: pkt.len - 5,
568 ),
569 ByteField("terminator", None),
570 ]
571
572
573class NotificationResponse(_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…