MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / SMB2CloseRequest

Class SMB2CloseRequest

pager_lib/smb/smb2_structs.py:630–653  ·  view source on GitHub ↗

References: =========== - [MS-SMB2]: 2.2.15

Source from the content-addressed store, hash-verified

628
629
630class SMB2CloseRequest(Structure):
631 """
632 References:
633 ===========
634 - [MS-SMB2]: 2.2.15
635 """
636
637 STRUCTURE_FORMAT = "<HHI16s"
638 STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT)
639
640 def __init__(self, fid, flags = 0):
641 self.fid = fid
642 self.flags = flags
643
644 def initMessage(self, message):
645 Structure.initMessage(self, message)
646 message.command = SMB2_COM_CLOSE
647
648 def prepare(self, message):
649 message.data = struct.pack(self.STRUCTURE_FORMAT,
650 24, # Structure size. Must be 24 as mandated by [MS-SMB2]: 2.2.15
651 self.flags,
652 0, # Reserved. Must be 0
653 self.fid)
654
655
656class SMB2CloseResponse(Structure):

Callers 1

closeFidMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected