smblib-priv.h File Reference
#include "smblib/smblib-common.h"
#include "smblib/std-defines.h"
#include <sys/types.h>
#include <unistd.h>
#include "rfcnb/byteorder.h"
Include dependency graph for smblib-priv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SMB_Status
 
struct  SMB_File_Def
 

Macros

#define max(a, b)   (a < b ? b : a)
 
#define SMB_DEF_IDF   0x424D53FF /* "\377SMB" */
 
#define SMBmkdir   0x00 /* create directory */
 
#define SMBrmdir   0x01 /* delete directory */
 
#define SMBopen   0x02 /* open file */
 
#define SMBcreate   0x03 /* create file */
 
#define SMBclose   0x04 /* close file */
 
#define SMBflush   0x05 /* flush file */
 
#define SMBunlink   0x06 /* delete file */
 
#define SMBmv   0x07 /* rename file */
 
#define SMBgetatr   0x08 /* get file attributes */
 
#define SMBsetatr   0x09 /* set file attributes */
 
#define SMBread   0x0A /* read from file */
 
#define SMBwrite   0x0B /* write to file */
 
#define SMBlock   0x0C /* lock byte range */
 
#define SMBunlock   0x0D /* unlock byte range */
 
#define SMBctemp   0x0E /* create temporary file */
 
#define SMBmknew   0x0F /* make new file */
 
#define SMBchkpth   0x10 /* check directory path */
 
#define SMBexit   0x11 /* process exit */
 
#define SMBlseek   0x12 /* seek */
 
#define SMBtcon   0x70 /* tree connect */
 
#define SMBtdis   0x71 /* tree disconnect */
 
#define SMBnegprot   0x72 /* negotiate protocol */
 
#define SMBdskattr   0x80 /* get disk attributes */
 
#define SMBsearch   0x81 /* search directory */
 
#define SMBsplopen   0xC0 /* open print spool file */
 
#define SMBsplwr   0xC1 /* write to print spool file */
 
#define SMBsplclose   0xC2 /* close print spool file */
 
#define SMBsplretq   0xC3 /* return print queue */
 
#define SMBsends   0xD0 /* send single block message */
 
#define SMBsendb   0xD1 /* send broadcast message */
 
#define SMBfwdname   0xD2 /* forward user name */
 
#define SMBcancelf   0xD3 /* cancel forward */
 
#define SMBgetmac   0xD4 /* get machine name */
 
#define SMBsendstrt   0xD5 /* send start of multi-block message */
 
#define SMBsendend   0xD6 /* send end of multi-block message */
 
#define SMBsendtxt   0xD7 /* send text of multi-block message */
 
#define SMBlockread   0x13 /* Lock a range and read it */
 
#define SMBwriteunlock   0x14 /* Unlock a range and then write */
 
#define SMBreadbraw   0x1a /* read a block of data without smb header ohead*/
 
#define SMBwritebraw   0x1d /* write a block of data without smb header ohead*/
 
#define SMBwritec   0x20 /* secondary write request */
 
#define SMBwriteclose   0x2c /* write a file and then close it */
 
#define SMBreadBraw   0x1A /* read block raw */
 
#define SMBreadBmpx   0x1B /* read block multiplexed */
 
#define SMBreadBs   0x1C /* read block (secondary response) */
 
#define SMBwriteBraw   0x1D /* write block raw */
 
#define SMBwriteBmpx   0x1E /* write block multiplexed */
 
#define SMBwriteBs   0x1F /* write block (secondary request) */
 
#define SMBwriteC   0x20 /* write complete response */
 
#define SMBsetattrE   0x22 /* set file attributes expanded */
 
#define SMBgetattrE   0x23 /* get file attributes expanded */
 
#define SMBlockingX   0x24 /* lock/unlock byte ranges and X */
 
#define SMBtrans   0x25 /* transaction - name, bytes in/out */
 
#define SMBtranss   0x26 /* transaction (secondary request/response) */
 
#define SMBioctl   0x27 /* IOCTL */
 
#define SMBioctls   0x28 /* IOCTL (secondary request/response) */
 
#define SMBcopy   0x29 /* copy */
 
#define SMBmove   0x2A /* move */
 
#define SMBecho   0x2B /* echo */
 
#define SMBopenX   0x2D /* open and X */
 
#define SMBreadX   0x2E /* read and X */
 
#define SMBwriteX   0x2F /* write and X */
 
#define SMBsesssetupX   0x73 /* Session Set Up & X (including User Logon) */
 
#define SMBtconX   0x75 /* tree connect and X */
 
#define SMBffirst   0x82 /* find first */
 
#define SMBfunique   0x83 /* find unique */
 
#define SMBfclose   0x84 /* find close */
 
#define SMBinvalid   0xFE /* invalid command */
 
#define SMBdatablockID   0x01 /* A data block identifier */
 
#define SMBdialectID   0x02 /* A dialect id */
 
#define SMBpathnameID   0x03 /* A pathname ID */
 
#define SMBasciiID   0x04 /* An ascii string ID */
 
#define SMBvariableblockID   0x05 /* A variable block ID */
 
#define SMB_FLG2_NON_DOS   0x01 /* We know non dos names */
 
#define SMB_FLG2_EXT_ATR   0x02 /* We know about Extended Attributes */
 
#define SMB_FLG2_LNG_NAM   0x04 /* Long names ? */
 
#define SMB_Hdr(p)   (char *)(p -> data)
 
#define SMB_hdr_idf_offset   0 /* 0xFF,'SMB' 0-3 */
 
#define SMB_hdr_com_offset   4 /* BYTE 4 */
 
#define SMB_hdr_rcls_offset   5 /* BYTE 5 */
 
#define SMB_hdr_reh_offset   6 /* BYTE 6 */
 
#define SMB_hdr_err_offset   7 /* WORD 7 */
 
#define SMB_hdr_reb_offset   9 /* BYTE 9 */
 
#define SMB_hdr_flg_offset   9 /* same as reb ...*/
 
#define SMB_hdr_res_offset   10 /* 7 WORDs 10 */
 
#define SMB_hdr_res0_offset   10 /* WORD 10 */
 
#define SMB_hdr_flg2_offset   10 /* WORD */
 
#define SMB_hdr_res1_offset   12 /* WORD 12 */
 
#define SMB_hdr_res2_offset   14
 
#define SMB_hdr_res3_offset   16
 
#define SMB_hdr_res4_offset   18
 
#define SMB_hdr_res5_offset   20
 
#define SMB_hdr_res6_offset   22
 
#define SMB_hdr_tid_offset   24
 
#define SMB_hdr_pid_offset   26
 
#define SMB_hdr_uid_offset   28
 
#define SMB_hdr_mid_offset   30
 
#define SMB_hdr_wct_offset   32
 
#define SMB_hdr_len   33 /* 33 byte header? */
 
#define SMB_hdr_axc_offset   33 /* AndX Command */
 
#define SMB_hdr_axr_offset   34 /* AndX Reserved */
 
#define SMB_hdr_axo_offset   35 /* Offset from start to WCT of AndX cmd */
 
#define SMB_negp_bcc_offset   33
 
#define SMB_negp_buf_offset   35 /* Where the buffer starts */
 
#define SMB_negp_len   35 /* plus the data */
 
#define SMB_negrCP_idx_offset   33 /* Response to the neg req */
 
#define SMB_negrCP_bcc_offset   35
 
#define SMB_negrLM_idx_offset   33 /* dialect index */
 
#define SMB_negrLM_sec_offset   35 /* Security mode */
 
#define SMB_sec_user_mask   0x01 /* 0 = share, 1 = user */
 
#define SMB_sec_encrypt_mask   0x02 /* pick out encrypt */
 
#define SMB_negrLM_mbs_offset   37 /* max buffer size */
 
#define SMB_negrLM_mmc_offset   39 /* max mpx count */
 
#define SMB_negrLM_mnv_offset   41 /* max number of VCs */
 
#define SMB_negrLM_rm_offset   43 /* raw mode support bit vec*/
 
#define SMB_read_raw_mask   0x01
 
#define SMB_write_raw_mask   0x02
 
#define SMB_negrLM_sk_offset   45 /* session key, 32 bits */
 
#define SMB_negrLM_st_offset   49 /* Current server time */
 
#define SMB_negrLM_sd_offset   51 /* Current server date */
 
#define SMB_negrLM_stz_offset   53 /* Server Time Zone */
 
#define SMB_negrLM_ekl_offset   55 /* encryption key length */
 
#define SMB_negrLM_res_offset   57 /* reserved */
 
#define SMB_negrLM_bcc_offset   59 /* bcc */
 
#define SMB_negrLM_len   61 /* 61 bytes ? */
 
#define SMB_negrLM_buf_offset   61 /* Where the fun begins */
 
#define SMB_negrNTLM_idx_offset   33 /* Selected protocol */
 
#define SMB_negrNTLM_sec_offset   35 /* Security more */
 
#define SMB_negrNTLM_mmc_offset   36 /* Different format above */
 
#define SMB_negrNTLM_mnv_offset   38 /* Max VCs */
 
#define SMB_negrNTLM_mbs_offset   40 /* MBS now a long */
 
#define SMB_negrNTLM_mrs_offset   44 /* Max raw size */
 
#define SMB_negrNTLM_sk_offset   48 /* Session Key */
 
#define SMB_negrNTLM_cap_offset   52 /* Capabilities */
 
#define SMB_negrNTLM_stl_offset   56 /* Server time low */
 
#define SMB_negrNTLM_sth_offset   60 /* Server time high */
 
#define SMB_negrNTLM_stz_offset   64 /* Server time zone */
 
#define SMB_negrNTLM_ekl_offset   66 /* Encrypt key len */
 
#define SMB_negrNTLM_bcc_offset   67 /* Bcc */
 
#define SMB_negrNTLM_len   69
 
#define SMB_negrNTLM_buf_offset   69
 
#define SMB_tcon_bcc_offset   33
 
#define SMB_tcon_buf_offset   35 /* where the data is for tcon */
 
#define SMB_tcon_len   35 /* plus the data */
 
#define SMB_tconr_mbs_offset   33 /* max buffer size */
 
#define SMB_tconr_tid_offset   35 /* returned tree id */
 
#define SMB_tconr_bcc_offset   37
 
#define SMB_tconr_len   39
 
#define SMB_tconx_axc_offset   33 /* And X Command */
 
#define SMB_tconx_axr_offset   34 /* reserved */
 
#define SMB_tconx_axo_offset   35 /* Next command offset */
 
#define SMB_tconx_flg_offset   37 /* Flags, bit0=1 means disc TID */
 
#define SMB_tconx_pwl_offset   39 /* Password length */
 
#define SMB_tconx_bcc_offset   41 /* bcc */
 
#define SMB_tconx_buf_offset   43 /* buffer */
 
#define SMB_tconx_len   43 /* up to data ... */
 
#define SMB_tconxr_axc_offset   33 /* Where the AndX Command is */
 
#define SMB_tconxr_axr_offset   34 /* Reserved */
 
#define SMB_tconxr_axo_offset   35 /* AndX offset location */
 
#define SMB_tdis_bcc_offset   33 /* bcc */
 
#define SMB_tdis_len   35 /* total len */
 
#define SMB_tdisr_bcc_offset   33 /* bcc */
 
#define SMB_tdisr_len   35
 
#define SMB_open_mod_offset   33 /* Mode to open with */
 
#define SMB_open_atr_offset   35 /* Attributes of file */
 
#define SMB_open_bcc_offset   37 /* bcc */
 
#define SMB_open_buf_offset   39 /* File name */
 
#define SMB_open_len   39 /* Plus the file name */
 
#define SMB_openx_axc_offset   33 /* Next command */
 
#define SMB_openx_axr_offset   34 /* Reserved */
 
#define SMB_openx_axo_offset   35 /* offset of next wct */
 
#define SMB_openx_flg_offset   37 /* Flags, bit0 = need more info */
 
#define SMB_openx_mod_offset   39 /* mode to open with */
 
#define SMB_openx_atr_offset   41 /* search attributes */
 
#define SMB_openx_fat_offset   43 /* File attributes */
 
#define SMB_openx_tim_offset   45 /* time and date of creat */
 
#define SMB_openx_ofn_offset   49 /* Open function */
 
#define SMB_openx_als_offset   51 /* Space to allocate on */
 
#define SMB_openx_res_offset   55 /* reserved */
 
#define SMB_openx_bcc_offset   63 /* bcc */
 
#define SMB_openx_buf_offset   65 /* Where file name goes */
 
#define SMB_openx_len   65
 
#define SMB_openr_fid_offset   33 /* FID returned */
 
#define SMB_openr_atr_offset   35 /* Attributes opened with */
 
#define SMB_openr_tim_offset   37 /* Last mod time of file */
 
#define SMB_openr_fsz_offset   41 /* File size 4 bytes */
 
#define SMB_openr_acc_offset   45 /* Access allowed */
 
#define SMB_openr_bcc_offset   47
 
#define SMB_openr_len   49
 
#define SMB_openxr_axc_offset   33 /* And X command */
 
#define SMB_openxr_axr_offset   34 /* reserved */
 
#define SMB_openxr_axo_offset   35 /* offset to next command */
 
#define SMB_openxr_fid_offset   37 /* FID returned */
 
#define SMB_openxr_fat_offset   39 /* File attributes returned*/
 
#define SMB_openxr_tim_offset   41 /* File creation date etc */
 
#define SMB_openxr_fsz_offset   45 /* Size of file */
 
#define SMB_openxr_acc_offset   49 /* Access granted */
 
#define SMB_clos_fid_offset   33 /* FID to close */
 
#define SMB_clos_tim_offset   35 /* Last mod time */
 
#define SMB_clos_bcc_offset   39 /* bcc */
 
#define SMB_clos_len   41
 
#define SMB_write_fid_offset   33 /* FID to write */
 
#define SMB_write_cnt_offset   35 /* bytes to write */
 
#define SMB_write_ofs_offset   37 /* location to write to */
 
#define SMB_write_clf_offset   41 /* advisory count left */
 
#define SMB_write_bcc_offset   43 /* bcc = data bytes + 3 */
 
#define SMB_write_buf_offset   45 /* Data=0x01, len, data */
 
#define SMB_write_len   45 /* plus the data ... */
 
#define SMB_writr_cnt_offset   33 /* Count of bytes written */
 
#define SMB_writr_bcc_offset   35 /* bcc */
 
#define SMB_writr_len   37
 
#define SMB_read_fid_offset   33 /* FID of file to read */
 
#define SMB_read_cnt_offset   35 /* count of words to read */
 
#define SMB_read_ofs_offset   37 /* Where to read from */
 
#define SMB_read_clf_offset   41 /* Advisory count to go */
 
#define SMB_read_bcc_offset   43
 
#define SMB_read_len   45
 
#define SMB_readr_cnt_offset   33 /* Count of bytes returned */
 
#define SMB_readr_res_offset   35 /* 4 shorts reserved, 8 bytes */
 
#define SMB_readr_bcc_offset   43 /* bcc */
 
#define SMB_readr_bff_offset   45 /* buffer format char = 0x01 */
 
#define SMB_readr_len_offset   46 /* buffer len */
 
#define SMB_readr_len   45 /* length of the readr before data */
 
#define SMB_creat_atr_offset   33 /* Attributes of new file ... */
 
#define SMB_creat_tim_offset   35 /* Time of creation */
 
#define SMB_creat_dat_offset   37 /* 4004BCE :-) */
 
#define SMB_creat_bcc_offset   39 /* bcc */
 
#define SMB_creat_buf_offset   41
 
#define SMB_creat_len   41 /* Before the data */
 
#define SMB_creatr_fid_offset   33 /* FID of created file */
 
#define SMB_delet_sat_offset   33 /* search attribites */
 
#define SMB_delet_bcc_offset   35 /* bcc */
 
#define SMB_delet_buf_offset   37
 
#define SMB_delet_len   37
 
#define SMB_ssetpLM_mbs_offset   37 /* Max buffer Size, allow for AndX */
 
#define SMB_ssetpLM_mmc_offset   39 /* max multiplex count */
 
#define SMB_ssetpLM_vcn_offset   41 /* VC number if new VC */
 
#define SMB_ssetpLM_snk_offset   43 /* Session Key */
 
#define SMB_ssetpLM_pwl_offset   47 /* password length */
 
#define SMB_ssetpLM_res_offset   49 /* reserved */
 
#define SMB_ssetpLM_bcc_offset   53 /* bcc */
 
#define SMB_ssetpLM_len   55 /* before data ... */
 
#define SMB_ssetpLM_buf_offset   55
 
#define SMB_ssetpNTLM_mbs_offset   37 /* Max Buffer Size for NT LM 0.12 */
 
#define SMB_ssetpNTLM_mmc_offset   39 /* Max Multiplex count */
 
#define SMB_ssetpNTLM_vcn_offset   41 /* VC Number */
 
#define SMB_ssetpNTLM_snk_offset   43 /* Session key */
 
#define SMB_ssetpNTLM_cipl_offset   47 /* Case Insensitive PW Len */
 
#define SMB_ssetpNTLM_cspl_offset   49 /* Unicode pw len */
 
#define SMB_ssetpNTLM_res_offset   51 /* reserved */
 
#define SMB_ssetpNTLM_cap_offset   55 /* server capabilities */
 
#define SMB_ssetpNTLM_bcc_offset   59 /* bcc */
 
#define SMB_ssetpNTLM_len   61 /* before data */
 
#define SMB_ssetpNTLM_buf_offset   61
 
#define SMB_ssetpr_axo_offset   35 /* Offset of next response ... */
 
#define SMB_ssetpr_act_offset   37 /* action, bit 0 = 1 => guest */
 
#define SMB_ssetpr_bcc_offset   39 /* bcc */
 
#define SMB_ssetpr_buf_offset   41 /* Native OS etc */
 
#define SMB_creatdir_bcc_offset   33 /* only a bcc here */
 
#define SMB_creatdir_buf_offset   35 /* Where things start */
 
#define SMB_creatdir_len   35
 
#define SMB_deletdir_bcc_offset   33 /* only a bcc here */
 
#define SMB_deletdir_buf_offset   35 /* where things start */
 
#define SMB_deletdir_len   35
 
#define SMB_checkdir_bcc_offset   33 /* Only a bcc here */
 
#define SMB_checkdir_buf_offset   35 /* where things start */
 
#define SMB_checkdir_len   35
 
#define SMB_search_mdc_offset   33 /* Max Dir ents to return */
 
#define SMB_search_atr_offset   35 /* Search attributes */
 
#define SMB_search_bcc_offset   37 /* bcc */
 
#define SMB_search_buf_offset   39 /* where the action is */
 
#define SMB_search_len   39
 
#define SMB_searchr_dec_offset   33 /* Dir ents returned */
 
#define SMB_searchr_bcc_offset   35 /* bcc */
 
#define SMB_searchr_buf_offset   37 /* Where the action starts */
 
#define SMB_searchr_len   37 /* before the dir ents */
 
#define SMB_searchr_dirent_len   43 /* 53 bytes */
 
#define SMB_trans_tpc_offset   33 /* Total param count */
 
#define SMB_trans_tdc_offset   35 /* total Data count */
 
#define SMB_trans_mpc_offset   37 /* Max params bytes to return */
 
#define SMB_trans_mdc_offset   39 /* Max data bytes to return */
 
#define SMB_trans_msc_offset   41 /* Max setup words to return */
 
#define SMB_trans_rs1_offset   42 /* Reserved byte */
 
#define SMB_trans_flg_offset   43 /* flags */
 
#define SMB_trans_tmo_offset   45 /* Timeout, long */
 
#define SMB_trans_rs2_offset   49 /* Next reserved */
 
#define SMB_trans_pbc_offset   51 /* Param Byte count in buf */
 
#define SMB_trans_pbo_offset   53 /* Offset to param bytes */
 
#define SMB_trans_dbc_offset   55 /* Data byte count in buf */
 
#define SMB_trans_dbo_offset   57 /* Data byte offset */
 
#define SMB_trans_suc_offset   59 /* Setup count - byte */
 
#define SMB_trans_rs3_offset   60 /* Reserved to pad ... */
 
#define SMB_trans_len   61 /* Up to setup, still need bcc */
 
#define SMB_transr_tpc_offset   33 /* Total param bytes returned */
 
#define SMB_transr_tdc_offset   35
 
#define SMB_transr_rs1_offset   37
 
#define SMB_transr_pbc_offset   39
 
#define SMB_transr_pbo_offset   41
 
#define SMB_transr_pdi_offset   43 /* parameter displacement */
 
#define SMB_transr_dbc_offset   45
 
#define SMB_transr_dbo_offset   47
 
#define SMB_transr_ddi_offset   49
 
#define SMB_transr_suc_offset   51
 
#define SMB_transr_rs2_offset   52
 
#define SMB_transr_len   53
 
#define SMB_cap_raw_mode   0x0001
 
#define SMB_cap_mpx_mode   0x0002
 
#define SMB_cap_unicode   0x0004
 
#define SMB_cap_large_files   0x0008
 
#define SMB_cap_nt_smbs   0x0010
 
#define SMB_rpc_remote_apis   0x0020
 
#define SMB_cap_nt_status   0x0040
 
#define SMB_cap_level_II_oplocks   0x0080
 
#define SMB_cap_lock_and_read   0x0100
 
#define SMB_cap_nt_find   0x0200
 
#define SMB_LMapi_SetUserInfo   0x0072
 
#define SMB_LMapi_UserPasswordSet   0x0073
 
#define SMBLIB_DEFAULT_DOMAIN   "SMBlib_dom"
 
#define SMBLIB_DEFAULT_OSNAME   "UNIX of some type"
 
#define SMBLIB_DEFAULT_LMTYPE   "SMBlib LM2.1 minus a bit"
 
#define SMBLIB_MAX_XMIT   65535
 
#define SMB_Sec_Mode_Share   0
 
#define SMB_Sec_Mode_User   1
 

Typedefs

typedef unsigned short uint16
 
typedef unsigned int uint32
 
typedef unsigned short WORD
 
typedef unsigned short UWORD
 
typedef unsigned int ULONG
 
typedef unsigned char BYTE
 
typedef unsigned char UCHAR
 
typedef struct SMB_Status SMB_Status
 
typedef struct SMB_File_Def SMB_File
 

Enumerations

enum  SMB_Transport_Types {
  SMB_RFCNB,
  SMB_IPXNB,
  SMB_NETBEUI,
  SMB_X25
}
 
enum  SMB_Con_Types {
  SMB_Con_FShare,
  SMB_Con_PShare,
  SMB_Con_IPC
}
 
enum  SMB_State_Types {
  SMB_State_NoState,
  SMB_State_Stopped,
  SMB_State_Started
}
 

Functions

void SMB_Get_My_Name (char *name, int len)
 

Variables

int SMB_Types []
 
SMB_State_Types SMBlib_State
 
int SMBlib_errno
 
int SMBlib_SMB_Error
 

Macro Definition Documentation

#define max (   a,
 
)    (a < b ? b : a)

Definition at line 47 of file smblib-priv.h.

#define SMB_cap_large_files   0x0008

Definition at line 480 of file smblib-priv.h.

#define SMB_cap_level_II_oplocks   0x0080

Definition at line 484 of file smblib-priv.h.

#define SMB_cap_lock_and_read   0x0100

Definition at line 485 of file smblib-priv.h.

#define SMB_cap_mpx_mode   0x0002

Definition at line 478 of file smblib-priv.h.

#define SMB_cap_nt_find   0x0200

Definition at line 486 of file smblib-priv.h.

#define SMB_cap_nt_smbs   0x0010

Definition at line 481 of file smblib-priv.h.

#define SMB_cap_nt_status   0x0040

Definition at line 483 of file smblib-priv.h.

#define SMB_cap_raw_mode   0x0001

Definition at line 477 of file smblib-priv.h.

#define SMB_cap_unicode   0x0004

Definition at line 479 of file smblib-priv.h.

#define SMB_checkdir_bcc_offset   33 /* Only a bcc here */

Definition at line 424 of file smblib-priv.h.

Referenced by SMB_Check_Dir().

#define SMB_checkdir_buf_offset   35 /* where things start */

Definition at line 425 of file smblib-priv.h.

Referenced by SMB_Check_Dir().

#define SMB_checkdir_len   35

Definition at line 426 of file smblib-priv.h.

Referenced by SMB_Check_Dir().

#define SMB_clos_bcc_offset   39 /* bcc */

Definition at line 329 of file smblib-priv.h.

Referenced by SMB_Close().

#define SMB_clos_fid_offset   33 /* FID to close */

Definition at line 327 of file smblib-priv.h.

Referenced by SMB_Close().

#define SMB_clos_len   41

Definition at line 330 of file smblib-priv.h.

Referenced by SMB_Close().

#define SMB_clos_tim_offset   35 /* Last mod time */

Definition at line 328 of file smblib-priv.h.

Referenced by SMB_Close().

#define SMB_creat_atr_offset   33 /* Attributes of new file ... */

Definition at line 364 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMB_creat_bcc_offset   39 /* bcc */

Definition at line 367 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMB_creat_buf_offset   41

Definition at line 368 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMB_creat_dat_offset   37 /* 4004BCE :-) */

Definition at line 366 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMB_creat_len   41 /* Before the data */

Definition at line 369 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMB_creat_tim_offset   35 /* Time of creation */

Definition at line 365 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMB_creatdir_bcc_offset   33 /* only a bcc here */

Definition at line 412 of file smblib-priv.h.

Referenced by SMB_Create_Dir().

#define SMB_creatdir_buf_offset   35 /* Where things start */

Definition at line 413 of file smblib-priv.h.

Referenced by SMB_Create_Dir().

#define SMB_creatdir_len   35

Definition at line 414 of file smblib-priv.h.

Referenced by SMB_Create_Dir().

#define SMB_creatr_fid_offset   33 /* FID of created file */

Definition at line 371 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMB_delet_bcc_offset   35 /* bcc */

Definition at line 376 of file smblib-priv.h.

Referenced by SMB_Delete().

#define SMB_delet_buf_offset   37

Definition at line 377 of file smblib-priv.h.

Referenced by SMB_Delete().

#define SMB_delet_len   37

Definition at line 378 of file smblib-priv.h.

Referenced by SMB_Delete().

#define SMB_delet_sat_offset   33 /* search attribites */

Definition at line 375 of file smblib-priv.h.

Referenced by SMB_Delete().

#define SMB_deletdir_bcc_offset   33 /* only a bcc here */

Definition at line 418 of file smblib-priv.h.

Referenced by SMB_Delete_Dir().

#define SMB_deletdir_buf_offset   35 /* where things start */

Definition at line 419 of file smblib-priv.h.

Referenced by SMB_Delete_Dir().

#define SMB_deletdir_len   35

Definition at line 420 of file smblib-priv.h.

Referenced by SMB_Delete_Dir().

#define SMB_FLG2_EXT_ATR   0x02 /* We know about Extended Attributes */

Definition at line 142 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_FLG2_LNG_NAM   0x04 /* Long names ? */

Definition at line 143 of file smblib-priv.h.

#define SMB_FLG2_NON_DOS   0x01 /* We know non dos names */

Definition at line 141 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_hdr_axc_offset   33 /* AndX Command */

Definition at line 201 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_hdr_axo_offset   35 /* Offset from start to WCT of AndX cmd */

Definition at line 203 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_hdr_axr_offset   34 /* AndX Reserved */

Definition at line 202 of file smblib-priv.h.

#define SMB_hdr_flg2_offset   10 /* WORD */

Definition at line 186 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_hdr_flg_offset   9 /* same as reb ...*/

Definition at line 183 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_hdr_len   33 /* 33 byte header? */

Definition at line 199 of file smblib-priv.h.

#define SMB_hdr_reb_offset   9 /* BYTE 9 */

Definition at line 182 of file smblib-priv.h.

#define SMB_hdr_reh_offset   6 /* BYTE 6 */

Definition at line 180 of file smblib-priv.h.

#define SMB_hdr_res0_offset   10 /* WORD 10 */

Definition at line 185 of file smblib-priv.h.

#define SMB_hdr_res1_offset   12 /* WORD 12 */

Definition at line 187 of file smblib-priv.h.

#define SMB_hdr_res2_offset   14

Definition at line 188 of file smblib-priv.h.

#define SMB_hdr_res3_offset   16

Definition at line 189 of file smblib-priv.h.

#define SMB_hdr_res4_offset   18

Definition at line 190 of file smblib-priv.h.

#define SMB_hdr_res5_offset   20

Definition at line 191 of file smblib-priv.h.

#define SMB_hdr_res6_offset   22

Definition at line 192 of file smblib-priv.h.

#define SMB_hdr_res_offset   10 /* 7 WORDs 10 */

Definition at line 184 of file smblib-priv.h.

#define SMB_LMapi_SetUserInfo   0x0072

Definition at line 490 of file smblib-priv.h.

#define SMB_LMapi_UserPasswordSet   0x0073

Definition at line 491 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_negp_bcc_offset   33

Definition at line 207 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negp_buf_offset   35 /* Where the buffer starts */

Definition at line 208 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negp_len   35 /* plus the data */

Definition at line 209 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrCP_bcc_offset   35

Definition at line 216 of file smblib-priv.h.

#define SMB_negrCP_idx_offset   33 /* Response to the neg req */

Definition at line 215 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_bcc_offset   59 /* bcc */

Definition at line 233 of file smblib-priv.h.

#define SMB_negrLM_buf_offset   61 /* Where the fun begins */

Definition at line 235 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_ekl_offset   55 /* encryption key length */

Definition at line 231 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_idx_offset   33 /* dialect index */

Definition at line 217 of file smblib-priv.h.

#define SMB_negrLM_len   61 /* 61 bytes ? */

Definition at line 234 of file smblib-priv.h.

#define SMB_negrLM_mbs_offset   37 /* max buffer size */

Definition at line 221 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_mmc_offset   39 /* max mpx count */

Definition at line 222 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_mnv_offset   41 /* max number of VCs */

Definition at line 223 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_res_offset   57 /* reserved */

Definition at line 232 of file smblib-priv.h.

#define SMB_negrLM_rm_offset   43 /* raw mode support bit vec*/

Definition at line 224 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_sd_offset   51 /* Current server date */

Definition at line 229 of file smblib-priv.h.

#define SMB_negrLM_sec_offset   35 /* Security mode */

Definition at line 218 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_sk_offset   45 /* session key, 32 bits */

Definition at line 227 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrLM_st_offset   49 /* Current server time */

Definition at line 228 of file smblib-priv.h.

#define SMB_negrLM_stz_offset   53 /* Server Time Zone */

Definition at line 230 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_bcc_offset   67 /* Bcc */

Definition at line 249 of file smblib-priv.h.

#define SMB_negrNTLM_buf_offset   69

Definition at line 251 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_cap_offset   52 /* Capabilities */

Definition at line 244 of file smblib-priv.h.

#define SMB_negrNTLM_ekl_offset   66 /* Encrypt key len */

Definition at line 248 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_idx_offset   33 /* Selected protocol */

Definition at line 237 of file smblib-priv.h.

#define SMB_negrNTLM_len   69

Definition at line 250 of file smblib-priv.h.

#define SMB_negrNTLM_mbs_offset   40 /* MBS now a long */

Definition at line 241 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_mmc_offset   36 /* Different format above */

Definition at line 239 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_mnv_offset   38 /* Max VCs */

Definition at line 240 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_mrs_offset   44 /* Max raw size */

Definition at line 242 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_sec_offset   35 /* Security more */

Definition at line 238 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_sk_offset   48 /* Session Key */

Definition at line 243 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_negrNTLM_sth_offset   60 /* Server time high */

Definition at line 246 of file smblib-priv.h.

#define SMB_negrNTLM_stl_offset   56 /* Server time low */

Definition at line 245 of file smblib-priv.h.

#define SMB_negrNTLM_stz_offset   64 /* Server time zone */

Definition at line 247 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_open_atr_offset   35 /* Attributes of file */

Definition at line 288 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_open_bcc_offset   37 /* bcc */

Definition at line 289 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_open_buf_offset   39 /* File name */

Definition at line 290 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_open_len   39 /* Plus the file name */

Definition at line 291 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_open_mod_offset   33 /* Mode to open with */

Definition at line 287 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_openr_acc_offset   45 /* Access allowed */

Definition at line 314 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_openr_atr_offset   35 /* Attributes opened with */

Definition at line 311 of file smblib-priv.h.

#define SMB_openr_bcc_offset   47

Definition at line 315 of file smblib-priv.h.

#define SMB_openr_fid_offset   33 /* FID returned */

Definition at line 310 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_openr_fsz_offset   41 /* File size 4 bytes */

Definition at line 313 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_openr_len   49

Definition at line 316 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_openr_tim_offset   37 /* Last mod time of file */

Definition at line 312 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMB_openx_als_offset   51 /* Space to allocate on */

Definition at line 304 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_atr_offset   41 /* search attributes */

Definition at line 300 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_axc_offset   33 /* Next command */

Definition at line 293 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_axo_offset   35 /* offset of next wct */

Definition at line 295 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_axr_offset   34 /* Reserved */

Definition at line 294 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_bcc_offset   63 /* bcc */

Definition at line 306 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_buf_offset   65 /* Where file name goes */

Definition at line 307 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_fat_offset   43 /* File attributes */

Definition at line 301 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_flg_offset   37 /* Flags, bit0 = need more info */

Definition at line 296 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_len   65

Definition at line 308 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_mod_offset   39 /* mode to open with */

Definition at line 299 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_ofn_offset   49 /* Open function */

Definition at line 303 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openx_res_offset   55 /* reserved */

Definition at line 305 of file smblib-priv.h.

#define SMB_openx_tim_offset   45 /* time and date of creat */

Definition at line 302 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openxr_acc_offset   49 /* Access granted */

Definition at line 325 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openxr_axc_offset   33 /* And X command */

Definition at line 318 of file smblib-priv.h.

#define SMB_openxr_axo_offset   35 /* offset to next command */

Definition at line 320 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openxr_axr_offset   34 /* reserved */

Definition at line 319 of file smblib-priv.h.

#define SMB_openxr_fat_offset   39 /* File attributes returned*/

Definition at line 322 of file smblib-priv.h.

#define SMB_openxr_fid_offset   37 /* FID returned */

Definition at line 321 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openxr_fsz_offset   45 /* Size of file */

Definition at line 324 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_openxr_tim_offset   41 /* File creation date etc */

Definition at line 323 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_read_bcc_offset   43

Definition at line 352 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_read_clf_offset   41 /* Advisory count to go */

Definition at line 351 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_read_cnt_offset   35 /* count of words to read */

Definition at line 349 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_read_fid_offset   33 /* FID of file to read */

Definition at line 348 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_read_len   45

Definition at line 353 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_read_ofs_offset   37 /* Where to read from */

Definition at line 350 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_read_raw_mask   0x01

Definition at line 225 of file smblib-priv.h.

#define SMB_readr_bcc_offset   43 /* bcc */

Definition at line 357 of file smblib-priv.h.

#define SMB_readr_bff_offset   45 /* buffer format char = 0x01 */

Definition at line 358 of file smblib-priv.h.

#define SMB_readr_cnt_offset   33 /* Count of bytes returned */

Definition at line 355 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_readr_len   45 /* length of the readr before data */

Definition at line 360 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMB_readr_len_offset   46 /* buffer len */

Definition at line 359 of file smblib-priv.h.

#define SMB_readr_res_offset   35 /* 4 shorts reserved, 8 bytes */

Definition at line 356 of file smblib-priv.h.

#define SMB_rpc_remote_apis   0x0020

Definition at line 482 of file smblib-priv.h.

#define SMB_search_atr_offset   35 /* Search attributes */

Definition at line 431 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_search_bcc_offset   37 /* bcc */

Definition at line 432 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_search_buf_offset   39 /* where the action is */

Definition at line 433 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_search_len   39

Definition at line 434 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_search_mdc_offset   33 /* Max Dir ents to return */

Definition at line 430 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_searchr_bcc_offset   35 /* bcc */

Definition at line 437 of file smblib-priv.h.

#define SMB_searchr_buf_offset   37 /* Where the action starts */

Definition at line 438 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_searchr_dec_offset   33 /* Dir ents returned */

Definition at line 436 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_searchr_dirent_len   43 /* 53 bytes */

Definition at line 441 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_searchr_len   37 /* before the dir ents */

Definition at line 439 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMB_sec_encrypt_mask   0x02 /* pick out encrypt */

Definition at line 220 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_Sec_Mode_Share   0

Definition at line 526 of file smblib-priv.h.

#define SMB_Sec_Mode_User   1

Definition at line 527 of file smblib-priv.h.

#define SMB_sec_user_mask   0x01 /* 0 = share, 1 = user */

Definition at line 219 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMB_ssetpLM_bcc_offset   53 /* bcc */

Definition at line 388 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_buf_offset   55

Definition at line 390 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_len   55 /* before data ... */

Definition at line 389 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_mbs_offset   37 /* Max buffer Size, allow for AndX */

Definition at line 382 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_mmc_offset   39 /* max multiplex count */

Definition at line 383 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_pwl_offset   47 /* password length */

Definition at line 386 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_res_offset   49 /* reserved */

Definition at line 387 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_snk_offset   43 /* Session Key */

Definition at line 385 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpLM_vcn_offset   41 /* VC number if new VC */

Definition at line 384 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_bcc_offset   59 /* bcc */

Definition at line 401 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_buf_offset   61

Definition at line 403 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_cap_offset   55 /* server capabilities */

Definition at line 400 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_cipl_offset   47 /* Case Insensitive PW Len */

Definition at line 397 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_cspl_offset   49 /* Unicode pw len */

Definition at line 398 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_len   61 /* before data */

Definition at line 402 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_mbs_offset   37 /* Max Buffer Size for NT LM 0.12 */

Definition at line 392 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_mmc_offset   39 /* Max Multiplex count */

Definition at line 394 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_res_offset   51 /* reserved */

Definition at line 399 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_snk_offset   43 /* Session key */

Definition at line 396 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpNTLM_vcn_offset   41 /* VC Number */

Definition at line 395 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpr_act_offset   37 /* action, bit 0 = 1 => guest */

Definition at line 406 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMB_ssetpr_axo_offset   35 /* Offset of next response ... */

Definition at line 405 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon().

#define SMB_ssetpr_bcc_offset   39 /* bcc */

Definition at line 407 of file smblib-priv.h.

#define SMB_ssetpr_buf_offset   41 /* Native OS etc */

Definition at line 408 of file smblib-priv.h.

#define SMB_tcon_bcc_offset   33

Definition at line 255 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_TreeConnect(), and SMB_TreeDisconnect().

#define SMB_tcon_buf_offset   35 /* where the data is for tcon */

Definition at line 256 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_TreeConnect().

#define SMB_tcon_len   35 /* plus the data */

Definition at line 257 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_TreeConnect().

#define SMB_tconr_bcc_offset   37

Definition at line 261 of file smblib-priv.h.

#define SMB_tconr_len   39

Definition at line 262 of file smblib-priv.h.

#define SMB_tconr_mbs_offset   33 /* max buffer size */

Definition at line 259 of file smblib-priv.h.

Referenced by SMB_TreeConnect().

#define SMB_tconr_tid_offset   35 /* returned tree id */

Definition at line 260 of file smblib-priv.h.

Referenced by SMB_TreeConnect().

#define SMB_tconx_axc_offset   33 /* And X Command */

Definition at line 264 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMB_tconx_axo_offset   35 /* Next command offset */

Definition at line 266 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMB_tconx_axr_offset   34 /* reserved */

Definition at line 265 of file smblib-priv.h.

#define SMB_tconx_bcc_offset   41 /* bcc */

Definition at line 269 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMB_tconx_buf_offset   43 /* buffer */

Definition at line 270 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMB_tconx_flg_offset   37 /* Flags, bit0=1 means disc TID */

Definition at line 267 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMB_tconx_len   43 /* up to data ... */

Definition at line 271 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMB_tconx_pwl_offset   39 /* Password length */

Definition at line 268 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMB_tconxr_axc_offset   33 /* Where the AndX Command is */

Definition at line 273 of file smblib-priv.h.

#define SMB_tconxr_axo_offset   35 /* AndX offset location */

Definition at line 275 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMB_tconxr_axr_offset   34 /* Reserved */

Definition at line 274 of file smblib-priv.h.

#define SMB_tdis_bcc_offset   33 /* bcc */

Definition at line 279 of file smblib-priv.h.

#define SMB_tdis_len   35 /* total len */

Definition at line 280 of file smblib-priv.h.

Referenced by SMB_TreeDisconnect().

#define SMB_tdisr_bcc_offset   33 /* bcc */

Definition at line 282 of file smblib-priv.h.

#define SMB_tdisr_len   35

Definition at line 283 of file smblib-priv.h.

#define SMB_trans_dbc_offset   55 /* Data byte count in buf */

Definition at line 456 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_dbo_offset   57 /* Data byte offset */

Definition at line 457 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_flg_offset   43 /* flags */

Definition at line 451 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_len   61 /* Up to setup, still need bcc */

Definition at line 460 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_mdc_offset   39 /* Max data bytes to return */

Definition at line 448 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_mpc_offset   37 /* Max params bytes to return */

Definition at line 447 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_msc_offset   41 /* Max setup words to return */

Definition at line 449 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_pbc_offset   51 /* Param Byte count in buf */

Definition at line 454 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_pbo_offset   53 /* Offset to param bytes */

Definition at line 455 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_rs1_offset   42 /* Reserved byte */

Definition at line 450 of file smblib-priv.h.

#define SMB_trans_rs2_offset   49 /* Next reserved */

Definition at line 453 of file smblib-priv.h.

#define SMB_trans_rs3_offset   60 /* Reserved to pad ... */

Definition at line 459 of file smblib-priv.h.

#define SMB_trans_suc_offset   59 /* Setup count - byte */

Definition at line 458 of file smblib-priv.h.

#define SMB_trans_tdc_offset   35 /* total Data count */

Definition at line 446 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_tmo_offset   45 /* Timeout, long */

Definition at line 452 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_trans_tpc_offset   33 /* Total param count */

Definition at line 445 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_transr_dbc_offset   45

Definition at line 468 of file smblib-priv.h.

#define SMB_transr_dbo_offset   47

Definition at line 469 of file smblib-priv.h.

#define SMB_transr_ddi_offset   49

Definition at line 470 of file smblib-priv.h.

#define SMB_transr_len   53

Definition at line 473 of file smblib-priv.h.

#define SMB_transr_pbc_offset   39

Definition at line 465 of file smblib-priv.h.

#define SMB_transr_pbo_offset   41

Definition at line 466 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMB_transr_pdi_offset   43 /* parameter displacement */

Definition at line 467 of file smblib-priv.h.

#define SMB_transr_rs1_offset   37

Definition at line 464 of file smblib-priv.h.

#define SMB_transr_rs2_offset   52

Definition at line 472 of file smblib-priv.h.

#define SMB_transr_suc_offset   51

Definition at line 471 of file smblib-priv.h.

#define SMB_transr_tdc_offset   35

Definition at line 463 of file smblib-priv.h.

#define SMB_transr_tpc_offset   33 /* Total param bytes returned */

Definition at line 462 of file smblib-priv.h.

#define SMB_write_bcc_offset   43 /* bcc = data bytes + 3 */

Definition at line 338 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_write_buf_offset   45 /* Data=0x01, len, data */

Definition at line 339 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_write_clf_offset   41 /* advisory count left */

Definition at line 337 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_write_cnt_offset   35 /* bytes to write */

Definition at line 335 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_write_fid_offset   33 /* FID to write */

Definition at line 334 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_write_len   45 /* plus the data ... */

Definition at line 340 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_write_ofs_offset   37 /* location to write to */

Definition at line 336 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMB_write_raw_mask   0x02

Definition at line 226 of file smblib-priv.h.

#define SMB_writr_bcc_offset   35 /* bcc */

Definition at line 343 of file smblib-priv.h.

#define SMB_writr_cnt_offset   33 /* Count of bytes written */

Definition at line 342 of file smblib-priv.h.

#define SMB_writr_len   37

Definition at line 344 of file smblib-priv.h.

#define SMBasciiID   0x04 /* An ascii string ID */
#define SMBcancelf   0xD3 /* cancel forward */

Definition at line 85 of file smblib-priv.h.

#define SMBchkpth   0x10 /* check directory path */

Definition at line 70 of file smblib-priv.h.

Referenced by SMB_Check_Dir().

#define SMBclose   0x04 /* close file */

Definition at line 58 of file smblib-priv.h.

Referenced by SMB_Close().

#define SMBcopy   0x29 /* copy */

Definition at line 116 of file smblib-priv.h.

#define SMBcreate   0x03 /* create file */

Definition at line 57 of file smblib-priv.h.

Referenced by SMB_Create().

#define SMBctemp   0x0E /* create temporary file */

Definition at line 68 of file smblib-priv.h.

#define SMBdatablockID   0x01 /* A data block identifier */

Definition at line 131 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMBdialectID   0x02 /* A dialect id */

Definition at line 132 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMBdskattr   0x80 /* get disk attributes */

Definition at line 76 of file smblib-priv.h.

#define SMBecho   0x2B /* echo */

Definition at line 118 of file smblib-priv.h.

#define SMBexit   0x11 /* process exit */

Definition at line 71 of file smblib-priv.h.

#define SMBfclose   0x84 /* find close */

Definition at line 126 of file smblib-priv.h.

#define SMBffirst   0x82 /* find first */

Definition at line 124 of file smblib-priv.h.

#define SMBflush   0x05 /* flush file */

Definition at line 59 of file smblib-priv.h.

#define SMBfunique   0x83 /* find unique */

Definition at line 125 of file smblib-priv.h.

#define SMBfwdname   0xD2 /* forward user name */

Definition at line 84 of file smblib-priv.h.

#define SMBgetatr   0x08 /* get file attributes */

Definition at line 62 of file smblib-priv.h.

#define SMBgetattrE   0x23 /* get file attributes expanded */

Definition at line 110 of file smblib-priv.h.

#define SMBgetmac   0xD4 /* get machine name */

Definition at line 86 of file smblib-priv.h.

#define SMBinvalid   0xFE /* invalid command */

Definition at line 127 of file smblib-priv.h.

#define SMBioctl   0x27 /* IOCTL */

Definition at line 114 of file smblib-priv.h.

#define SMBioctls   0x28 /* IOCTL (secondary request/response) */

Definition at line 115 of file smblib-priv.h.

#define SMBLIB_DEFAULT_DOMAIN   "SMBlib_dom"

Definition at line 521 of file smblib-priv.h.

Referenced by SMB_Connect().

#define SMBLIB_DEFAULT_LMTYPE   "SMBlib LM2.1 minus a bit"

Definition at line 523 of file smblib-priv.h.

Referenced by SMB_Connect(), and SMB_Connect_Server().

#define SMBLIB_DEFAULT_OSNAME   "UNIX of some type"

Definition at line 522 of file smblib-priv.h.

Referenced by SMB_Connect(), and SMB_Connect_Server().

#define SMBLIB_MAX_XMIT   65535

Definition at line 524 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMBlock   0x0C /* lock byte range */

Definition at line 66 of file smblib-priv.h.

#define SMBlockingX   0x24 /* lock/unlock byte ranges and X */

Definition at line 111 of file smblib-priv.h.

#define SMBlockread   0x13 /* Lock a range and read it */

Definition at line 93 of file smblib-priv.h.

#define SMBlseek   0x12 /* seek */

Definition at line 72 of file smblib-priv.h.

#define SMBmkdir   0x00 /* create directory */

Definition at line 54 of file smblib-priv.h.

Referenced by SMB_Create_Dir().

#define SMBmknew   0x0F /* make new file */

Definition at line 69 of file smblib-priv.h.

#define SMBmove   0x2A /* move */

Definition at line 117 of file smblib-priv.h.

#define SMBmv   0x07 /* rename file */

Definition at line 61 of file smblib-priv.h.

#define SMBnegprot   0x72 /* negotiate protocol */

Definition at line 75 of file smblib-priv.h.

Referenced by SMB_Negotiate().

#define SMBopen   0x02 /* open file */

Definition at line 56 of file smblib-priv.h.

Referenced by SMB_Open().

#define SMBopenX   0x2D /* open and X */

Definition at line 119 of file smblib-priv.h.

Referenced by SMB_Logon_TCon_Open().

#define SMBpathnameID   0x03 /* A pathname ID */

Definition at line 133 of file smblib-priv.h.

#define SMBread   0x0A /* read from file */

Definition at line 64 of file smblib-priv.h.

Referenced by SMB_Read().

#define SMBreadBmpx   0x1B /* read block multiplexed */

Definition at line 103 of file smblib-priv.h.

#define SMBreadbraw   0x1a /* read a block of data without smb header ohead*/

Definition at line 95 of file smblib-priv.h.

#define SMBreadBraw   0x1A /* read block raw */

Definition at line 102 of file smblib-priv.h.

#define SMBreadBs   0x1C /* read block (secondary response) */

Definition at line 104 of file smblib-priv.h.

#define SMBreadX   0x2E /* read and X */

Definition at line 120 of file smblib-priv.h.

#define SMBrmdir   0x01 /* delete directory */

Definition at line 55 of file smblib-priv.h.

Referenced by SMB_Delete_Dir().

#define SMBsearch   0x81 /* search directory */

Definition at line 77 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMBsendb   0xD1 /* send broadcast message */

Definition at line 83 of file smblib-priv.h.

#define SMBsendend   0xD6 /* send end of multi-block message */

Definition at line 88 of file smblib-priv.h.

#define SMBsends   0xD0 /* send single block message */

Definition at line 82 of file smblib-priv.h.

#define SMBsendstrt   0xD5 /* send start of multi-block message */

Definition at line 87 of file smblib-priv.h.

#define SMBsendtxt   0xD7 /* send text of multi-block message */

Definition at line 89 of file smblib-priv.h.

#define SMBsesssetupX   0x73 /* Session Set Up & X (including User Logon) */

Definition at line 122 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), SMB_Logon_Server(), and SMB_Logon_TCon_Open().

#define SMBsetatr   0x09 /* set file attributes */

Definition at line 63 of file smblib-priv.h.

#define SMBsetattrE   0x22 /* set file attributes expanded */

Definition at line 109 of file smblib-priv.h.

#define SMBsplclose   0xC2 /* close print spool file */

Definition at line 80 of file smblib-priv.h.

#define SMBsplopen   0xC0 /* open print spool file */

Definition at line 78 of file smblib-priv.h.

#define SMBsplretq   0xC3 /* return print queue */

Definition at line 81 of file smblib-priv.h.

#define SMBsplwr   0xC1 /* write to print spool file */

Definition at line 79 of file smblib-priv.h.

#define SMBtcon   0x70 /* tree connect */

Definition at line 73 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_TreeConnect().

#define SMBtconX   0x75 /* tree connect and X */

Definition at line 123 of file smblib-priv.h.

Referenced by SMB_Logon_And_TCon(), and SMB_Logon_TCon_Open().

#define SMBtdis   0x71 /* tree disconnect */

Definition at line 74 of file smblib-priv.h.

Referenced by SMB_TreeDisconnect().

#define SMBtrans   0x25 /* transaction - name, bytes in/out */

Definition at line 112 of file smblib-priv.h.

Referenced by SMBapi_NetUserPasswordSet().

#define SMBtranss   0x26 /* transaction (secondary request/response) */

Definition at line 113 of file smblib-priv.h.

#define SMBunlink   0x06 /* delete file */

Definition at line 60 of file smblib-priv.h.

Referenced by SMB_Delete().

#define SMBunlock   0x0D /* unlock byte range */

Definition at line 67 of file smblib-priv.h.

#define SMBvariableblockID   0x05 /* A variable block ID */

Definition at line 135 of file smblib-priv.h.

Referenced by SMB_Search().

#define SMBwrite   0x0B /* write to file */

Definition at line 65 of file smblib-priv.h.

Referenced by SMB_Write().

#define SMBwriteBmpx   0x1E /* write block multiplexed */

Definition at line 106 of file smblib-priv.h.

#define SMBwritebraw   0x1d /* write a block of data without smb header ohead*/

Definition at line 96 of file smblib-priv.h.

#define SMBwriteBraw   0x1D /* write block raw */

Definition at line 105 of file smblib-priv.h.

#define SMBwriteBs   0x1F /* write block (secondary request) */

Definition at line 107 of file smblib-priv.h.

#define SMBwritec   0x20 /* secondary write request */

Definition at line 97 of file smblib-priv.h.

#define SMBwriteC   0x20 /* write complete response */

Definition at line 108 of file smblib-priv.h.

#define SMBwriteclose   0x2c /* write a file and then close it */

Definition at line 98 of file smblib-priv.h.

#define SMBwriteunlock   0x14 /* Unlock a range and then write */

Definition at line 94 of file smblib-priv.h.

#define SMBwriteX   0x2F /* write and X */

Definition at line 121 of file smblib-priv.h.

Typedef Documentation

typedef unsigned char BYTE

Definition at line 148 of file smblib-priv.h.

typedef struct SMB_File_Def SMB_File

Definition at line 529 of file smblib-priv.h.

typedef struct SMB_Status SMB_Status
typedef unsigned char UCHAR

Definition at line 149 of file smblib-priv.h.

typedef unsigned short uint16

Definition at line 41 of file smblib-priv.h.

typedef unsigned int uint32

Definition at line 42 of file smblib-priv.h.

typedef unsigned int ULONG

Definition at line 147 of file smblib-priv.h.

typedef unsigned short UWORD

Definition at line 146 of file smblib-priv.h.

typedef unsigned short WORD

Definition at line 145 of file smblib-priv.h.

Enumeration Type Documentation

Enumerator
SMB_Con_FShare 
SMB_Con_PShare 
SMB_Con_IPC 

Definition at line 500 of file smblib-priv.h.

Enumerator
SMB_State_NoState 
SMB_State_Stopped 
SMB_State_Started 

Definition at line 502 of file smblib-priv.h.

Enumerator
SMB_RFCNB 
SMB_IPXNB 
SMB_NETBEUI 
SMB_X25 

Definition at line 498 of file smblib-priv.h.

Function Documentation

void SMB_Get_My_Name ( char *  name,
int  len 
)

Definition at line 452 of file smblib-util.c.

References NULL.

Referenced by SMB_Connect(), and SMB_Connect_Server().

Variable Documentation

int SMB_Types[]

Definition at line 42 of file smblib-util.c.

Referenced by SMB_Figure_Protocol(), and SMB_Logon_And_TCon().

SMB_State_Types SMBlib_State

Definition at line 48 of file smblib.c.

Referenced by SMB_Init().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors