(self, message)
| 590 | PAYLOAD_STRUCT_SIZE = struct.calcsize(PAYLOAD_STRUCT_FORMAT) |
| 591 | |
| 592 | def decode(self, message): |
| 593 | assert message.command == SMB_COM_TREE_CONNECT_ANDX |
| 594 | |
| 595 | if not message.status.hasError: |
| 596 | if len(message.parameters_data) < self.PAYLOAD_STRUCT_SIZE: |
| 597 | raise ProtocolError('Not enough data to decode SMB_COM_TREE_CONNECT_ANDX parameters', message.raw_data, message) |
| 598 | |
| 599 | _, _, _, self.optional_support = struct.unpack(self.PAYLOAD_STRUCT_FORMAT, message.parameters_data[:self.PAYLOAD_STRUCT_SIZE]) |
| 600 | |
| 601 | |
| 602 | class ComNTCreateAndxRequest(Payload): |
nothing calls this directly
no test coverage detected