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

Method prepare

pager_lib/smb/smb2_structs.py:807–817  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

805 message.command = SMB2_COM_SET_INFO
806
807 def prepare(self, message):
808 message.data = struct.pack(self.STRUCTURE_FORMAT,
809 33, # StructureSize. Must be 33 as mandated by [MS-SMB2] 2.2.39
810 self.info_type, # InfoType
811 self.file_info_class, # FileInfoClass
812 len(self.data), # BufferLength
813 SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE, # BufferOffset
814 0, # Reserved
815 self.additional_info, # AdditionalInformation
816 self.fid # FileId
817 ) + self.data
818
819class SMB2SetInfoResponse(Structure):
820 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected