smbd: avoid calling SMB_VFS_FGET_NT_ACL() if do_not_check_mask already covers all
[Samba.git] / source3 / smbd / smbd.h
blobf2c3abcda2d0ec2cd656a1e269a53b358a4e20b6
1 /*
2 Unix SMB/CIFS implementation.
3 Main SMB server routines
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _SMBD_SMBD_H
20 #define _SMBD_SMBD_H
22 struct dptr_struct;
24 #include "smb_acls.h"
25 #include "vfs.h"
26 #include "smbd/proto.h"
27 #include "locking/proto.h"
28 #include "smbd/fd_handle.h"
29 #if defined(WITH_SMB1SERVER)
30 #include "smbd/smb1_message.h"
31 #include "smbd/smb1_sesssetup.h"
32 #include "smbd/smb1_lanman.h"
33 #include "smbd/smb1_aio.h"
34 #include "smbd/smb1_ipc.h"
35 #include "smbd/smb1_negprot.h"
36 #include "smbd/smb1_nttrans.h"
37 #include "smbd/smb1_oplock.h"
38 #include "smbd/smb1_pipes.h"
39 #include "smbd/smb1_reply.h"
40 #include "smbd/smb1_service.h"
41 #include "smbd/smb1_signing.h"
42 #include "smbd/smb1_process.h"
43 #include "smbd/smb1_utils.h"
44 #include "smbd/smb1_trans2.h"
45 #endif
47 struct trans_state {
48 struct trans_state *next, *prev;
49 uint64_t vuid; /* SMB2 compat */
50 uint64_t mid;
52 uint32_t max_param_return;
53 uint32_t max_data_return;
54 uint32_t max_setup_return;
56 uint8_t cmd; /* SMBtrans or SMBtrans2 */
58 char *name; /* for trans requests */
59 uint16_t call; /* for trans2 and nttrans requests */
61 bool close_on_completion;
62 bool one_way;
64 unsigned int setup_count;
65 uint16_t *setup;
67 size_t received_data;
68 size_t received_param;
70 size_t total_param;
71 char *param;
73 size_t total_data;
74 char *data;
78 * unix_convert_flags
80 /* UCF_SAVE_LCOMP 0x00000001 is no longer used. */
81 /* UCF_ALWAYS_ALLOW_WCARD_LCOMP 0x00000002 is no longer used. */
82 /* UCF_COND_ALLOW_WCARD_LCOMP 0x00000004 is no longer used. */
83 #define UCF_POSIX_PATHNAMES 0x00000008
84 /* #define UCF_UNIX_NAME_LOOKUP 0x00000010 is no longer used. */
85 #define UCF_PREP_CREATEFILE 0x00000020
87 * Use the same bit as FLAGS2_REPARSE_PATH
88 * which means the same thing.
90 #define UCF_GMT_PATHNAME 0x00000400
92 * Use the same bit as FLAGS2_DFS_PATHNAMES
93 * which means the same thing.
95 #define UCF_DFS_PATHNAME 0x00001000
97 #endif /* _SMBD_SMBD_H */