source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/smb.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1/*
2 *  smb.h
3 *
4 *  Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke
5 *  Copyright (C) 1997 by Volker Lendecke
6 *
7 */
8
9#ifndef _LINUX_SMB_H
10#define _LINUX_SMB_H
11
12#include <linux/types.h>
13
14enum smb_protocol { 
15        SMB_PROTOCOL_NONE, 
16        SMB_PROTOCOL_CORE, 
17        SMB_PROTOCOL_COREPLUS, 
18        SMB_PROTOCOL_LANMAN1, 
19        SMB_PROTOCOL_LANMAN2, 
20        SMB_PROTOCOL_NT1
21};
22
23enum smb_case_hndl {
24        SMB_CASE_DEFAULT,
25        SMB_CASE_LOWER,
26        SMB_CASE_UPPER
27};
28
29struct smb_dskattr {
30        __u16 total;
31        __u16 allocblocks;
32        __u16 blocksize;
33        __u16 free;
34};
35
36struct smb_conn_opt {
37
38        /* The socket */
39        unsigned int fd;
40
41        enum smb_protocol protocol;
42        enum smb_case_hndl case_handling;
43
44        /* Connection-Options */
45
46        __u32              max_xmit;
47        __u16              server_uid;
48        __u16              tid;
49
50        /* The following are LANMAN 1.0 options */
51        __u16              secmode;
52        __u16              maxmux;
53        __u16              maxvcs;
54        __u16              rawmode;
55        __u32              sesskey;
56
57        /* The following are NT LM 0.12 options */
58        __u32              maxraw;
59        __u32              capabilities;
60        __s16              serverzone;
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.