(self, pkt)
| 1582 | |
| 1583 | @ATMT.action(receive_close_request) |
| 1584 | def send_close_response(self, pkt): |
| 1585 | self.update_smbheader(pkt) |
| 1586 | if self.current_tree() != "IPC$": |
| 1587 | fid = self.get_file_id(pkt) |
| 1588 | pth, attrs = self.current_handles[fid] |
| 1589 | if pth: |
| 1590 | self.vprint("Closed: " + str(pth)) |
| 1591 | del self.current_handles[fid] |
| 1592 | del self.enumerate_index[fid] |
| 1593 | self.send( |
| 1594 | self.smb_header.copy() |
| 1595 | / SMB2_Close_Response( |
| 1596 | Flags=pkt[SMB2_Close_Request].Flags, |
| 1597 | **attrs, |
| 1598 | ) |
| 1599 | ) |
| 1600 | else: |
| 1601 | self.send(self.smb_header.copy() / SMB2_Close_Response()) |
| 1602 | |
| 1603 | @ATMT.receive_condition(SERVING) |
| 1604 | def receive_tree_disconnect_request(self, pkt): |
nothing calls this directly
no test coverage detected