The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame^] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef _LINUX_SMB_H |
| 13 | #define _LINUX_SMB_H |
| 14 | |
| 15 | #include <linux/types.h> |
| 16 | |
| 17 | enum smb_protocol { |
| 18 | SMB_PROTOCOL_NONE, |
| 19 | SMB_PROTOCOL_CORE, |
| 20 | SMB_PROTOCOL_COREPLUS, |
| 21 | SMB_PROTOCOL_LANMAN1, |
| 22 | SMB_PROTOCOL_LANMAN2, |
| 23 | SMB_PROTOCOL_NT1 |
| 24 | }; |
| 25 | |
| 26 | enum smb_case_hndl { |
| 27 | SMB_CASE_DEFAULT, |
| 28 | SMB_CASE_LOWER, |
| 29 | SMB_CASE_UPPER |
| 30 | }; |
| 31 | |
| 32 | struct smb_dskattr { |
| 33 | __u16 total; |
| 34 | __u16 allocblocks; |
| 35 | __u16 blocksize; |
| 36 | __u16 free; |
| 37 | }; |
| 38 | |
| 39 | struct smb_conn_opt { |
| 40 | |
| 41 | unsigned int fd; |
| 42 | |
| 43 | enum smb_protocol protocol; |
| 44 | enum smb_case_hndl case_handling; |
| 45 | |
| 46 | __u32 max_xmit; |
| 47 | __u16 server_uid; |
| 48 | __u16 tid; |
| 49 | |
| 50 | __u16 secmode; |
| 51 | __u16 maxmux; |
| 52 | __u16 maxvcs; |
| 53 | __u16 rawmode; |
| 54 | __u32 sesskey; |
| 55 | |
| 56 | __u32 maxraw; |
| 57 | __u32 capabilities; |
| 58 | __s16 serverzone; |
| 59 | }; |
| 60 | |
| 61 | #endif |