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>
15 #include <linux/time.h>
21 SMB_PROTOCOL_COREPLUS
,
45 enum smb_protocol protocol
;
46 enum smb_case_hndl case_handling
;
48 /* Connection-Options */
54 /* The following are LANMAN 1.0 options */
61 /* The following are NT LM 0.12 options */
69 #define SMB_NLS_MAXNAMELEN 20
70 struct smb_nls_codepage
{
71 char local_name
[SMB_NLS_MAXNAMELEN
];
72 char remote_name
[SMB_NLS_MAXNAMELEN
];
76 #define SMB_MAXNAMELEN 255
77 #define SMB_MAXPATHLEN 1024
80 * Contains all relevant data on a SMB networked file.
92 struct timespec f_atime
;
93 struct timespec f_mtime
;
94 struct timespec f_ctime
;
95 unsigned long f_blocks
;
100 CONN_VALID
, /* everything's fine */
101 CONN_INVALID
, /* Something went wrong, but did not
102 try to reconnect yet. */
103 CONN_RETRIED
, /* Tried a reconnection, but was refused */
104 CONN_RETRYING
/* Currently trying to reconnect */
107 #define SMB_HEADER_LEN 37 /* includes everything up to, but not
108 * including smb_bcc */
110 #define SMB_INITIAL_PACKET_SIZE 4000
111 #define SMB_MAX_PACKET_SIZE 32768
113 /* reserve this much space for trans2 parameters. Shouldn't have to be more
114 than 10 or so, but OS/2 seems happier like this. */
115 #define SMB_TRANS2_MAX_PARAM 64