Deleted Added
full compact
smb.h (82037) smb.h (88741)
1/*
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/netsmb/smb.h 82037 2001-08-21 08:21:03Z bp $
32 * $FreeBSD: head/sys/netsmb/smb.h 88741 2001-12-31 19:29:43Z bp $
33 */
34
35/*
33 */
34
35/*
36 * Common definintions and structures for SMB/CIFS protocol
36 * Common definitions and structures for SMB/CIFS protocol
37 */
38
39#ifndef _NETSMB_SMB_H_
40#define _NETSMB_SMB_H_
41
42#define SMB_TCP_PORT 139
43/*
44 * SMB dialects that we have to deal with.

--- 47 unchanged lines hidden (view full) ---

92
93#define SMB_UID_UNKNOWN 0xffff
94#define SMB_TID_UNKNOWN 0xffff
95
96/*
97 * Security mode bits
98 */
99#define SMB_SM_USER 0x01 /* server in the user security mode */
37 */
38
39#ifndef _NETSMB_SMB_H_
40#define _NETSMB_SMB_H_
41
42#define SMB_TCP_PORT 139
43/*
44 * SMB dialects that we have to deal with.

--- 47 unchanged lines hidden (view full) ---

92
93#define SMB_UID_UNKNOWN 0xffff
94#define SMB_TID_UNKNOWN 0xffff
95
96/*
97 * Security mode bits
98 */
99#define SMB_SM_USER 0x01 /* server in the user security mode */
100#define SMB_SM_ENCRYPT 0x02 /* use challenge/responce */
100#define SMB_SM_ENCRYPT 0x02 /* use challenge/response */
101
102/*
103 * NTLM capabilities
104 */
105#define SMB_CAP_RAW_MODE 0x0001
106#define SMB_CAP_MPX_MODE 0x0002
107#define SMB_CAP_UNICODE 0x0004
108#define SMB_CAP_LARGE_FILES 0x0008 /* 64 bit offsets supported */

--- 222 unchanged lines hidden (view full) ---

331#define ERRbadpw 2 /* Bad password */
332#define ERRaccess 4 /* The client doesn't have enough access rights */
333#define ERRinvnid 5 /* The Tid specified in a command is invalid */
334#define ERRinvnetname 6 /* Invalid server name in the tree connect */
335#define ERRinvdevice 7 /* Printer and not printer devices are mixed */
336#define ERRqfull 49 /* Print queue full */
337#define ERRqtoobig 50 /* Print queue full - no space */
338#define ERRinvpfid 52 /* Invalid print file FID */
101
102/*
103 * NTLM capabilities
104 */
105#define SMB_CAP_RAW_MODE 0x0001
106#define SMB_CAP_MPX_MODE 0x0002
107#define SMB_CAP_UNICODE 0x0004
108#define SMB_CAP_LARGE_FILES 0x0008 /* 64 bit offsets supported */

--- 222 unchanged lines hidden (view full) ---

331#define ERRbadpw 2 /* Bad password */
332#define ERRaccess 4 /* The client doesn't have enough access rights */
333#define ERRinvnid 5 /* The Tid specified in a command is invalid */
334#define ERRinvnetname 6 /* Invalid server name in the tree connect */
335#define ERRinvdevice 7 /* Printer and not printer devices are mixed */
336#define ERRqfull 49 /* Print queue full */
337#define ERRqtoobig 50 /* Print queue full - no space */
338#define ERRinvpfid 52 /* Invalid print file FID */
339#define ERRsmbcmd 64 /* The server did not recognise the command */
339#define ERRsmbcmd 64 /* The server did not recognize the command */
340#define ERRsrverror 65 /* The server encountered and internal error */
341#define ERRfilespecs 67 /* The Fid and path name contains an invalid combination */
342#define ERRbadpermits 69 /* Access mode invalid */
343#define ERRsetattrmode 71 /* Attribute mode invalid */
344#define ERRpaused 81 /* Server is paused */
345#define ERRmsgoff 82 /* Not receiving messages */
346#define ERRnoroom 83 /* No room to buffer message */
347#define ERRrmuns 87 /* Too many remote user names */
348#define ERRtimeout 88 /* Operation timed out */
349#define ERRnoresource 89 /* No resources currently available for request */
350#define ERRtoomanyuids 90 /* Too many UIDs active on this session */
351#define ERRbaduid 91 /* The UID is not known in this session */
352#define ERRusempx 250 /* Temporarily unable to support Raw, use MPX mode */
340#define ERRsrverror 65 /* The server encountered and internal error */
341#define ERRfilespecs 67 /* The Fid and path name contains an invalid combination */
342#define ERRbadpermits 69 /* Access mode invalid */
343#define ERRsetattrmode 71 /* Attribute mode invalid */
344#define ERRpaused 81 /* Server is paused */
345#define ERRmsgoff 82 /* Not receiving messages */
346#define ERRnoroom 83 /* No room to buffer message */
347#define ERRrmuns 87 /* Too many remote user names */
348#define ERRtimeout 88 /* Operation timed out */
349#define ERRnoresource 89 /* No resources currently available for request */
350#define ERRtoomanyuids 90 /* Too many UIDs active on this session */
351#define ERRbaduid 91 /* The UID is not known in this session */
352#define ERRusempx 250 /* Temporarily unable to support Raw, use MPX mode */
353#define ERRusestd 251 /* Temporarily unable to support Raw, use stdandard r/w */
353#define ERRusestd 251 /* Temporarily unable to support Raw, use standard r/w */
354#define ERRcontmpx 252 /* Continue in MPX mode */
355#define ERRnosupport 65535 /* Invalid function */
356
357/*
358 * Error codes for the ERRHRD class
359 */
360#define ERRnowrite 19 /* write protected media */
361#define ERRbadunit 20 /* Unknown unit */

--- 27 unchanged lines hidden ---
354#define ERRcontmpx 252 /* Continue in MPX mode */
355#define ERRnosupport 65535 /* Invalid function */
356
357/*
358 * Error codes for the ERRHRD class
359 */
360#define ERRnowrite 19 /* write protected media */
361#define ERRbadunit 20 /* Unknown unit */

--- 27 unchanged lines hidden ---