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

Class SMB2_Error_Response

scapy/layers/smb2.py:2070–2080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2068
2069
2070class SMB2_Error_Response(_SMB2_Payload):
2071 Command = -1
2072 __slots__ = ["NTStatus"] # extra info
2073 name = "SMB2 Error Response"
2074 fields_desc = [
2075 XLEShortField("StructureSize", 0x09),
2076 ByteField("ErrorContextCount", 0),
2077 ByteField("Reserved", 0),
2078 FieldLenField("ByteCount", None, fmt="<I", length_of="ErrorData"),
2079 XStrLenField("ErrorData", b"", length_from=lambda pkt: pkt.ByteCount),
2080 ]
2081
2082
2083bind_top_down(SMB2_Header, SMB2_Error_Response, Flags=1) # SMB2_FLAGS_SERVER_TO_REDIR

Calls 4

XLEShortFieldClass · 0.90
ByteFieldClass · 0.90
FieldLenFieldClass · 0.90
XStrLenFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…