Contains information about the SMB_COM_TREE_CONNECT_ANDX response from the server. If the message has no errors, each instance contains the following attributes: - optional_support References: =========== - [MS-CIFS]: 2.2.4.55.2
| 575 | |
| 576 | |
| 577 | class ComTreeConnectAndxResponse(Payload): |
| 578 | """ |
| 579 | Contains information about the SMB_COM_TREE_CONNECT_ANDX response from the server. |
| 580 | |
| 581 | If the message has no errors, each instance contains the following attributes: |
| 582 | - optional_support |
| 583 | |
| 584 | References: |
| 585 | =========== |
| 586 | - [MS-CIFS]: 2.2.4.55.2 |
| 587 | """ |
| 588 | |
| 589 | PAYLOAD_STRUCT_FORMAT = '<BBHH' |
| 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): |