#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))
◆ 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
◆ smb_err
◆ smb_flg
◆ smb_flg2
◆ 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
◆ smb_pid
◆ smb_pidhigh
◆ SMB_PORT1
◆ SMB_PORT2
◆ SMB_PORTS
| #define SMB_PORTS "445 139" |
◆ smb_rcls
◆ SMB_REALLOC
| #define SMB_REALLOC |
( |
|
p, |
|
|
|
s |
|
) |
| Realloc((p),(s),True) /* Always frees p on error or s == 0 */ |
◆ smb_reh
◆ smb_ss_field
◆ SMB_STRDUP
| #define SMB_STRDUP |
( |
|
s | ) |
strdup(s) |
◆ SMB_STRNDUP
| #define SMB_STRNDUP |
( |
|
s, |
|
|
|
n |
|
) |
| strndup(s,n) |
◆ smb_tid
◆ smb_uid
◆ smb_vwv
◆ smb_vwv0
◆ smb_vwv1
◆ smb_vwv10
◆ smb_vwv11
◆ smb_vwv12
◆ smb_vwv13
◆ smb_vwv14
◆ smb_vwv15
◆ smb_vwv16
◆ smb_vwv17
◆ smb_vwv2
◆ smb_vwv3
◆ smb_vwv4
◆ smb_vwv5
◆ smb_vwv6
◆ smb_vwv7
◆ smb_vwv8
◆ smb_vwv9
◆ smb_wct
◆ STR_ASCII
◆ STR_NOALIGN
◆ STR_TERMINATE
◆ STR_TERMINATE_ASCII
| #define STR_TERMINATE_ASCII 128 |
◆ STR_UNICODE
◆ STR_UPPER
◆ 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 | |