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

Method prepare

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

Source from the content-addressed store, hash-verified

462 message.command = SMB2_COM_WRITE
463
464 def prepare(self, message):
465 message.data = struct.pack(self.STRUCTURE_FORMAT,
466 49, # Structure size. Must be 49 as mandated by [MS-SMB2] 2.2.21
467 SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE, # DataOffset
468 len(self.data),
469 self.offset,
470 self.fid,
471 0, # Channel. Must be 0
472 self.remaining_len, # RemainingBytes
473 0, # WriteChannelInfoOffset,
474 0, # WriteChannelInfoLength
475 self.flags) + self.data
476
477
478class SMB2WriteResponse(Structure):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected