#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <ctype.h>
#include <errno.h>
#include "charset.h"
Go to the source code of this file.
◆ CAP_DFS
◆ CAP_EXTENDED_SECURITY
#define CAP_EXTENDED_SECURITY 0x80000000 |
◆ CAP_LARGE_FILES
#define CAP_LARGE_FILES 0x0008 |
◆ CAP_LARGE_READX
#define CAP_LARGE_READX 0x4000 |
◆ CAP_LARGE_WRITEX
#define CAP_LARGE_WRITEX 0x8000 |
◆ CAP_LEVEL_II_OPLOCKS
#define CAP_LEVEL_II_OPLOCKS 0x0080 |
◆ CAP_LOCK_AND_READ
#define CAP_LOCK_AND_READ 0x0100 |
◆ CAP_MPX_MODE
#define CAP_MPX_MODE 0x0002 |
◆ CAP_NT_FIND
#define CAP_NT_FIND 0x0200 |
◆ CAP_NT_SMBS
#define CAP_NT_SMBS 0x0010 |
◆ CAP_RAW_MODE
#define CAP_RAW_MODE 0x0001 |
◆ CAP_RPC_REMOTE_APIS
#define CAP_RPC_REMOTE_APIS 0x0020 |
◆ CAP_STATUS32
#define CAP_STATUS32 0x0040 |
◆ CAP_UNICODE
#define CAP_UNICODE 0x0004 |
◆ CAP_UNIX
#define CAP_UNIX 0x800000 /* Capabilities for UNIX extensions. Created by HP. */ |
◆ CAP_W2K_SMBS
#define CAP_W2K_SMBS 0x2000 |
◆ COPY_UCS2_CHAR
#define COPY_UCS2_CHAR |
( |
|
dest, |
|
|
|
src |
|
) |
| |
Value:(((unsigned char *)(dest))[0] = ((unsigned char *)(src))[0],\
((unsigned char *)(dest))[1] = ((unsigned char *)(src))[1], (dest))
Definition at line 162 of file smb.h.
◆ FLAGS2_32_BIT_ERROR_CODES
#define FLAGS2_32_BIT_ERROR_CODES 0x4000 |
◆ FLAGS2_DFS_PATHNAMES
#define FLAGS2_DFS_PATHNAMES 0x1000 |
◆ FLAGS2_EXTENDED_ATTRIBUTES
#define FLAGS2_EXTENDED_ATTRIBUTES 0x0002 |
◆ FLAGS2_EXTENDED_SECURITY
#define FLAGS2_EXTENDED_SECURITY 0x0800 |
◆ FLAGS2_IS_LONG_NAME
#define FLAGS2_IS_LONG_NAME 0x0040 |
◆ FLAGS2_LONG_PATH_COMPONENTS
#define FLAGS2_LONG_PATH_COMPONENTS 0x0001 |
◆ FLAGS2_READ_PERMIT_EXECUTE
#define FLAGS2_READ_PERMIT_EXECUTE 0x2000 |
◆ FLAGS2_SMB_SECURITY_SIGNATURES
#define FLAGS2_SMB_SECURITY_SIGNATURES 0x0004 |
◆ FLAGS2_UNICODE_STRINGS
#define FLAGS2_UNICODE_STRINGS 0x8000 |
◆ FLAGS2_UNKNOWN_BIT4
#define FLAGS2_UNKNOWN_BIT4 0x0010 |
◆ FLAGS2_WIN2K_SIGNATURE
#define FLAGS2_WIN2K_SIGNATURE 0xC852 /* Hack alert ! For now... JRA. */ |
◆ NEGOTIATE_SECURITY_CHALLENGE_RESPONSE
#define NEGOTIATE_SECURITY_CHALLENGE_RESPONSE 0x02 |
◆ NEGOTIATE_SECURITY_SIGNATURES_ENABLED
#define NEGOTIATE_SECURITY_SIGNATURES_ENABLED 0x04 |
◆ NEGOTIATE_SECURITY_SIGNATURES_REQUIRED
#define NEGOTIATE_SECURITY_SIGNATURES_REQUIRED 0x08 |
◆ NEGOTIATE_SECURITY_USER_LEVEL
#define NEGOTIATE_SECURITY_USER_LEVEL 0x01 |
◆ SAFE_FREE
#define SAFE_FREE |
( |
|
x | ) |
do { if ((x) != NULL) {free(x); x=NULL;} } while(0) |
◆ smb_com
Definition at line 49 of file smb.h.
◆ smb_err
Definition at line 52 of file smb.h.
◆ smb_flg
Definition at line 53 of file smb.h.
◆ smb_flg2
Definition at line 54 of file smb.h.
◆ smb_len
#define smb_len |
( |
|
buf | ) |
(PVAL(buf,3)|(PVAL(buf,2)<<8)|((PVAL(buf,1)&1)<<16)) |
◆ SMB_MALLOC_P
#define SMB_MALLOC_P |
( |
|
type | ) |
(type *)malloc(sizeof(type)) |
◆ smb_mid
Definition at line 60 of file smb.h.
◆ smb_pid
Definition at line 58 of file smb.h.
◆ smb_pidhigh
Definition at line 55 of file smb.h.
◆ SMB_PORT1
Definition at line 44 of file smb.h.
◆ SMB_PORT2
Definition at line 45 of file smb.h.
◆ SMB_PORTS
#define SMB_PORTS "445 139" |
Definition at line 46 of file smb.h.
◆ smb_rcls
Definition at line 50 of file smb.h.
◆ SMB_REALLOC
#define SMB_REALLOC |
( |
|
p, |
|
|
|
s |
|
) |
| Realloc((p),(s),True) /* Always frees p on error or s == 0 */ |
◆ smb_reh
Definition at line 51 of file smb.h.
◆ smb_ss_field
Definition at line 56 of file smb.h.
◆ SMB_STRDUP
#define SMB_STRDUP |
( |
|
s | ) |
strdup(s) |
◆ SMB_STRNDUP
#define SMB_STRNDUP |
( |
|
s, |
|
|
|
n |
|
) |
| strndup(s,n) |
◆ smb_tid
Definition at line 57 of file smb.h.
◆ smb_uid
Definition at line 59 of file smb.h.
◆ smb_vwv
Definition at line 62 of file smb.h.
◆ smb_vwv0
Definition at line 63 of file smb.h.
◆ smb_vwv1
Definition at line 64 of file smb.h.
◆ smb_vwv10
Definition at line 73 of file smb.h.
◆ smb_vwv11
Definition at line 74 of file smb.h.
◆ smb_vwv12
Definition at line 75 of file smb.h.
◆ smb_vwv13
Definition at line 76 of file smb.h.
◆ smb_vwv14
Definition at line 77 of file smb.h.
◆ smb_vwv15
Definition at line 78 of file smb.h.
◆ smb_vwv16
Definition at line 79 of file smb.h.
◆ smb_vwv17
Definition at line 80 of file smb.h.
◆ smb_vwv2
Definition at line 65 of file smb.h.
◆ smb_vwv3
Definition at line 66 of file smb.h.
◆ smb_vwv4
Definition at line 67 of file smb.h.
◆ smb_vwv5
Definition at line 68 of file smb.h.
◆ smb_vwv6
Definition at line 69 of file smb.h.
◆ smb_vwv7
Definition at line 70 of file smb.h.
◆ smb_vwv8
Definition at line 71 of file smb.h.
◆ smb_vwv9
Definition at line 72 of file smb.h.
◆ smb_wct
Definition at line 61 of file smb.h.
◆ STR_ASCII
Definition at line 97 of file smb.h.
◆ STR_NOALIGN
Definition at line 99 of file smb.h.
◆ STR_TERMINATE
Definition at line 95 of file smb.h.
◆ STR_TERMINATE_ASCII
#define STR_TERMINATE_ASCII 128 |
◆ STR_UNICODE
Definition at line 98 of file smb.h.
◆ STR_UPPER
Definition at line 96 of file smb.h.
◆ TCONX_FLAG_EXTENDED_RESPONSE
#define TCONX_FLAG_EXTENDED_RESPONSE 0x8 |
◆ UCS2_CHAR
◆ UCS2_SHIFT
◆ UCS2_TO_CHAR
#define UCS2_TO_CHAR |
( |
|
c | ) |
(((c) >> UCS2_SHIFT) & 0xff) |
◆ NTTIME
◆ smb_iconv_t
◆ protocol_types
Enumerator |
---|
PROTOCOL_NONE | |
PROTOCOL_CORE | |
PROTOCOL_COREPLUS | |
PROTOCOL_LANMAN1 | |
PROTOCOL_LANMAN2 | |
PROTOCOL_NT1 | |
Definition at line 147 of file smb.h.