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

Method prepare

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

Source from the content-addressed store, hash-verified

305 message.command = SMB2_COM_TREE_CONNECT
306
307 def prepare(self, message):
308 message.data = struct.pack(self.STRUCTURE_FORMAT,
309 9, # Structure size. Must be 9 as mandated by [MS-SMB2] 2.2.9
310 0, # Reserved
311 SMB2Message.HEADER_SIZE + self.STRUCTURE_SIZE,
312 len(self.path)*2) + self.path.encode('UTF-16LE')
313
314
315class SMB2TreeConnectResponse(Structure):

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected