| 2068 | |
| 2069 | |
| 2070 | class 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 | |
| 2083 | bind_top_down(SMB2_Header, SMB2_Error_Response, Flags=1) # SMB2_FLAGS_SERVER_TO_REDIR |
no test coverage detected
searching dependent graphs…