2 Unix SMB/CIFS implementation.
6 Copyright (C) Andrew Tridgell 2005
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 uint32_t unknown1; /* 0x00010024 */
27 uint16_t unknown2; /* 0x00 */
28 uint8_t unknown3[32]; /* all zero */
31 uint32_t unknown1; /* 0x41 */
32 uint32_t unknown2; /* 0x06 */
34 uint32_t unknown3; /* 0x0d */
35 uint16_t unknown4; /* 0x00 */
36 uint32_t unknown5; /* 0x01 */
37 uint32_t unknown6; /* 0x01 */
38 uint16_t unknown7; /* 0x01 */
41 uint16_t unknown8; /* 0x80 */
42 /* uint16_t secblob size here */
43 uint32_t unknown9; /* 0x204d4c20 */
48 struct smb2_session_setup {
50 uint32_t unknown1; /* 0x11 */
51 uint32_t unknown2; /* 0xF */
52 uint32_t unknown3; /* 0x00 */
53 /* uint16_t secblob ofs/size here */
57 uint32_t unknown1; /* 0x09 */
58 /* uint16_t secblob ofs/size here */
60 uint64_t uid; /* returned in header */
64 struct smb2_tree_connect {
66 uint32_t unknown1; /* 0x09 */
70 uint32_t unknown1; /* 0x00020010 */
71 uint32_t unknown2; /* 0x00 */
72 uint32_t unknown3; /* 0x00 */
73 uint32_t unknown4; /* 0x1f01ff */ /* capabilities?? */
79 file handles in SMB2 are 20 bytes, like RPC handles
87 uint32_t unknown1; /* 0x09000039 */
88 uint32_t unknown2; /* 2 */
93 uint32_t open_disposition;
95 /* ofs/len of name here, 16 bits */
117 struct smb2_handle handle;
118 uint32_t unknown8[2];