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

Class ErrorResponseField

scapy/contrib/postgres.py:346–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345
346class ErrorResponseField(StrNullField):
347 def m2i(self, pkt, x):
348 """Unpack into a tuple of Field, Value."""
349 i = super(ErrorResponseField, self).m2i(pkt, x)
350 i_code = i[0:1] # Python 2/3 compatible
351 return (ERROR_FIELD.get(i_code, i_code), i[1:])
352
353
354class ErrorResponse(_ZeroPadding):

Callers 2

ErrorResponseClass · 0.85
NoticeResponseClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…