4 * Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke
5 * Copyright (C) 1997 by Volker Lendecke
12 #include <linux/types.h>
17 SMB_PROTOCOL_COREPLUS
,
41 enum smb_protocol protocol
;
42 enum smb_case_hndl case_handling
;
44 /* Connection-Options */
50 /* The following are LANMAN 1.0 options */
57 /* The following are NT LM 0.12 options */
65 #define SMB_NLS_MAXNAMELEN 20
66 struct smb_nls_codepage
{
67 char local_name
[SMB_NLS_MAXNAMELEN
];
68 char remote_name
[SMB_NLS_MAXNAMELEN
];
72 #define SMB_MAXNAMELEN 255
73 #define SMB_MAXPATHLEN 1024
76 * Contains all relevant data on a SMB networked file.
88 struct timespec f_atime
;
89 struct timespec f_mtime
;
90 struct timespec f_ctime
;
91 unsigned long f_blksize
;
92 unsigned long f_blocks
;
97 CONN_VALID
, /* everything's fine */
98 CONN_INVALID
, /* Something went wrong, but did not
99 try to reconnect yet. */
100 CONN_RETRIED
, /* Tried a reconnection, but was refused */
101 CONN_RETRYING
/* Currently trying to reconnect */
104 #define SMB_SUPER_MAGIC 0x517B
106 #define SMB_HEADER_LEN 37 /* includes everything up to, but not
107 * including smb_bcc */
109 #define SMB_INITIAL_PACKET_SIZE 4000
110 #define SMB_MAX_PACKET_SIZE 32768
112 /* reserve this much space for trans2 parameters. Shouldn't have to be more
113 than 10 or so, but OS/2 seems happier like this. */
114 #define SMB_TRANS2_MAX_PARAM 64