4 * Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke
5 * Copyright (C) 1997 by Volker Lendecke
12 #include <linux/types.h>
13 #include <linux/magic.h>
14 #include <linux/time.h>
19 SMB_PROTOCOL_COREPLUS
,
43 enum smb_protocol protocol
;
44 enum smb_case_hndl case_handling
;
46 /* Connection-Options */
52 /* The following are LANMAN 1.0 options */
59 /* The following are NT LM 0.12 options */
67 #define SMB_NLS_MAXNAMELEN 20
68 struct smb_nls_codepage
{
69 char local_name
[SMB_NLS_MAXNAMELEN
];
70 char remote_name
[SMB_NLS_MAXNAMELEN
];
74 #define SMB_MAXNAMELEN 255
75 #define SMB_MAXPATHLEN 1024
78 * Contains all relevant data on a SMB networked file.
90 struct timespec f_atime
;
91 struct timespec f_mtime
;
92 struct timespec f_ctime
;
93 unsigned long f_blocks
;
98 CONN_VALID
, /* everything's fine */
99 CONN_INVALID
, /* Something went wrong, but did not
100 try to reconnect yet. */
101 CONN_RETRIED
, /* Tried a reconnection, but was refused */
102 CONN_RETRYING
/* Currently trying to reconnect */
105 #define SMB_HEADER_LEN 37 /* includes everything up to, but not
106 * including smb_bcc */
108 #define SMB_INITIAL_PACKET_SIZE 4000
109 #define SMB_MAX_PACKET_SIZE 32768
111 /* reserve this much space for trans2 parameters. Shouldn't have to be more
112 than 10 or so, but OS/2 seems happier like this. */
113 #define SMB_TRANS2_MAX_PARAM 64