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

Method send_tree_disconnect_response

scapy/layers/smbserver.py:1609–1618  ·  view source on GitHub ↗
(self, pkt)

Source from the content-addressed store, hash-verified

1607
1608 @ATMT.action(receive_tree_disconnect_request)
1609 def send_tree_disconnect_response(self, pkt):
1610 self.update_smbheader(pkt)
1611 try:
1612 del self.current_trees[self.smb_header.TID] # clear tree
1613 resp = self.smb_header.copy() / SMB2_Tree_Disconnect_Response()
1614 except KeyError:
1615 resp = self.smb_header.copy() / SMB2_Error_Response()
1616 resp.Command = "SMB2_TREE_DISCONNECT"
1617 resp.Status = "STATUS_NETWORK_NAME_DELETED"
1618 self.send(resp)
1619
1620 @ATMT.receive_condition(SERVING)
1621 def receive_cancel_request(self, pkt):

Callers

nothing calls this directly

Calls 5

update_smbheaderMethod · 0.95
sendMethod · 0.95
SMB2_Error_ResponseClass · 0.90
copyMethod · 0.45

Tested by

no test coverage detected