Linux Kernel
3.7.1
|
#include <net/sock.h>
Go to the source code of this file.
Variables | |
struct smb2_hdr | __packed |
__u8 | cifs_client_guid [SMB2_CLIENT_GUID_SIZE] |
#define FILE_ACCESS_SYSTEM_SECURITY_LE cpu_to_le32(0x01000000) |
#define FILE_APPEND_DATA_LE cpu_to_le32(0x00000004) |
#define FILE_COMPLETE_IF_OPLOCKED_LE cpu_to_le32(0x00000100) |
#define FILE_CREATE_LE cpu_to_le32(0x00000002) |
#define FILE_DELETE_LE cpu_to_le32(0x00010000) |
#define FILE_DELETE_ON_CLOSE_LE cpu_to_le32(0x00001000) |
#define FILE_DIRECTORY_FILE_LE cpu_to_le32(0x00000001) |
#define FILE_EXEC_RIGHTS_LE (FILE_EXECUTE_LE) |
#define FILE_EXECUTE_LE cpu_to_le32(0x00000020) |
#define FILE_GENERIC_ALL_LE cpu_to_le32(0x10000000) |
#define FILE_GENERIC_EXECUTE_LE cpu_to_le32(0x20000000) |
#define FILE_GENERIC_READ_LE cpu_to_le32(0x80000000) |
#define FILE_GENERIC_WRITE_LE cpu_to_le32(0x40000000) |
#define FILE_MAXIMAL_ACCESS_LE cpu_to_le32(0x02000000) |
#define FILE_NO_COMPRESSION_LE cpu_to_le32(0x00008000) |
#define FILE_NO_EA_KNOWLEDGE_LE cpu_to_le32(0x00000200) |
#define FILE_NO_INTERMEDIATE_BUFFERRING_LE cpu_to_le32(0x00000008) |
#define FILE_NON_DIRECTORY_FILE_LE cpu_to_le32(0x00000040) |
#define FILE_OPEN_BY_FILE_ID_LE cpu_to_le32(0x00002000) |
#define FILE_OPEN_FOR_BACKUP_INTENT_LE cpu_to_le32(0x00004000) |
#define FILE_OPEN_FOR_FREE_SPACE_QUERY_LE cpu_to_le32(0x00800000) |
#define FILE_OPEN_IF_LE cpu_to_le32(0x00000003) |
#define FILE_OPEN_LE cpu_to_le32(0x00000001) |
#define FILE_OPEN_NO_RECALL_LE cpu_to_le32(0x00400000) |
#define FILE_OPEN_REPARSE_POINT_LE cpu_to_le32(0x00200000) |
#define FILE_OVERWRITE_IF_LE cpu_to_le32(0x00000005) |
#define FILE_OVERWRITE_LE cpu_to_le32(0x00000004) |
#define FILE_RANDOM_ACCESS_LE cpu_to_le32(0x00000800) |
#define FILE_READ_ATTRIBUTES_LE cpu_to_le32(0x00000080) |
#define FILE_READ_CONTROL_LE cpu_to_le32(0x00020000) |
#define FILE_READ_DATA_LE cpu_to_le32(0x00000001) |
#define FILE_READ_EA_LE cpu_to_le32(0x00000008) |
#define FILE_READ_RIGHTS_LE |
#define FILE_RESERVE_OPFILTER_LE cpu_to_le32(0x00100000) |
#define FILE_SEQUENTIAL_ONLY_LE cpu_to_le32(0x00000004) |
#define FILE_SHARE_ALL_LE cpu_to_le32(0x00000007) |
#define FILE_SHARE_DELETE_LE cpu_to_le32(0x00000004) |
#define FILE_SHARE_READ_LE cpu_to_le32(0x00000001) |
#define FILE_SHARE_WRITE_LE cpu_to_le32(0x00000002) |
#define FILE_SUPERSEDE_LE cpu_to_le32(0x00000000) |
#define FILE_SYNCHRONIZE_LE cpu_to_le32(0x00100000) |
#define FILE_SYNCHRONOUS_IO_ALERT_LE cpu_to_le32(0x00000010) |
#define FILE_SYNCHRONOUS_IO_NON_ALERT_LE cpu_to_le32(0x00000020) |
#define FILE_WRITE_ATTRIBUTES_LE cpu_to_le32(0x00000100) |
#define FILE_WRITE_DAC_LE cpu_to_le32(0x00040000) |
#define FILE_WRITE_DATA_LE cpu_to_le32(0x00000002) |
#define FILE_WRITE_EA_LE cpu_to_le32(0x00000010) |
#define FILE_WRITE_OWNER_LE cpu_to_le32(0x00080000) |
#define FILE_WRITE_RIGHTS_LE |
#define FILE_WRITE_THROUGH_LE cpu_to_le32(0x00000002) |
#define IL_ANONYMOUS cpu_to_le32(0x00000000) |
#define IL_DELEGATE cpu_to_le32(0x00000003) |
#define IL_IDENTIFICATION cpu_to_le32(0x00000001) |
#define IL_IMPERSONATION cpu_to_le32(0x00000002) |
#define MAX_SMB2_HDR_SIZE 0x78 /* 4 len + 64 hdr + (2*24 wct) + 2 bct + 2 pad */ |
#define SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM 0x00000800 |
#define SMB2_CANCEL cpu_to_le16(SMB2_CANCEL_HE) |
#define SMB2_CHANGE_NOTIFY cpu_to_le16(SMB2_CHANGE_NOTIFY_HE) |
#define SMB2_CLOSE cpu_to_le16(SMB2_CLOSE_HE) |
#define SMB2_CLOSE_FLAG_POSTQUERY_ATTRIB cpu_to_le16(0x0001) |
#define SMB2_CREATE cpu_to_le16(SMB2_CREATE_HE) |
#define SMB2_CREATE_EA_BUFFER "ExtA" /* extended attributes */ |
#define SMB2_CREATE_SD_BUFFER "SecD" /* security descriptor */ |
#define SMB2_ECHO cpu_to_le16(SMB2_ECHO_HE) |
#define SMB2_ERROR_STRUCTURE_SIZE2 __constant_cpu_to_le16(9) |
#define SMB2_FLAGS_ASYNC_COMMAND __constant_cpu_to_le32(0x00000002) |
#define SMB2_FLAGS_DFS_OPERATIONS __constant_cpu_to_le32(0x10000000) |
#define SMB2_FLAGS_RELATED_OPERATIONS __constant_cpu_to_le32(0x00000004) |
#define SMB2_FLAGS_SERVER_TO_REDIR __constant_cpu_to_le32(0x00000001) |
#define SMB2_FLAGS_SIGNED __constant_cpu_to_le32(0x00000008) |
#define SMB2_FLUSH cpu_to_le16(SMB2_FLUSH_HE) |
#define SMB2_GLOBAL_CAP_DIRECTORY_LEASING 0x00000020 /* New to SMB3 */ |
#define SMB2_GLOBAL_CAP_ENCRYPTION 0x00000040 /* New to SMB3 */ |
#define SMB2_GLOBAL_CAP_LARGE_MTU 0X00000004 /* Resp only New to SMB2.1 */ |
#define SMB2_GLOBAL_CAP_LEASING 0x00000002 /* Resp only New to SMB2.1 */ |
#define SMB2_GLOBAL_CAP_MULTI_CHANNEL 0x00000008 /* New to SMB3 */ |
#define SMB2_GLOBAL_CAP_PERSISTENT_HANDLES 0x00000010 /* New to SMB3 */ |
#define SMB2_HEADER_STRUCTURE_SIZE __constant_cpu_to_le16(64) |
#define SMB2_IOCTL cpu_to_le16(SMB2_IOCTL_HE) |
#define SMB2_LEASE_FLAG_BREAK_IN_PROGRESS __constant_cpu_to_le32(0x02) |
#define SMB2_LEASE_HANDLE_CACHING __constant_cpu_to_le32(0x02) |
#define SMB2_LEASE_NONE __constant_cpu_to_le32(0x00) |
#define SMB2_LEASE_READ_CACHING __constant_cpu_to_le32(0x01) |
#define SMB2_LEASE_WRITE_CACHING __constant_cpu_to_le32(0x04) |
#define SMB2_LOCK cpu_to_le16(SMB2_LOCK_HE) |
#define SMB2_LOGOFF cpu_to_le16(SMB2_LOGOFF_HE) |
#define SMB2_NEGOTIATE cpu_to_le16(SMB2_NEGOTIATE_HE) |
#define SMB2_NOTIFY_BREAK_LEASE_FLAG_ACK_REQUIRED cpu_to_le32(0x01) |
#define SMB2_OPLOCK_BREAK cpu_to_le16(SMB2_OPLOCK_BREAK_HE) |
#define SMB2_PROTO_NUMBER __constant_cpu_to_le32(0x424d53fe) |
#define SMB2_QUERY_DIRECTORY cpu_to_le16(SMB2_QUERY_DIRECTORY_HE) |
#define SMB2_QUERY_INFO cpu_to_le16(SMB2_QUERY_INFO_HE) |
#define SMB2_READ cpu_to_le16(SMB2_READ_HE) |
#define SMB2_SESSION_SETUP cpu_to_le16(SMB2_SESSION_SETUP_HE) |
#define SMB2_SET_INFO cpu_to_le16(SMB2_SET_INFO_HE) |
#define SMB2_SHARE_CAP_DFS cpu_to_le32(0x00000008) |
#define SMB2_TREE_CONNECT cpu_to_le16(SMB2_TREE_CONNECT_HE) |
#define SMB2_TREE_DISCONNECT cpu_to_le16(SMB2_TREE_DISCONNECT_HE) |
#define SMB2_TREE_DISCONNECT_HE 0x0004 /* trivial req/resp */ |
#define SMB2_WRITE cpu_to_le16(SMB2_WRITE_HE) |
__u8 cifs_client_guid[SMB2_CLIENT_GUID_SIZE] |