cli               243 src/vfs/smbfs/helpers/include/proto.h int cli_set_port (struct cli_state *cli, int port);
cli               244 src/vfs/smbfs/helpers/include/proto.h char *cli_errstr (struct cli_state *cli);
cli               245 src/vfs/smbfs/helpers/include/proto.h BOOL cli_api_pipe (struct cli_state *cli, char *pipe_name, int pipe_name_len,
cli               250 src/vfs/smbfs/helpers/include/proto.h BOOL cli_api (struct cli_state *cli,
cli               254 src/vfs/smbfs/helpers/include/proto.h BOOL cli_NetWkstaUserLogon (struct cli_state *cli, char *user, char *workstation);
cli               255 src/vfs/smbfs/helpers/include/proto.h int cli_RNetShareEnum (struct cli_state *cli,
cli               257 src/vfs/smbfs/helpers/include/proto.h BOOL cli_NetServerEnum (struct cli_state *cli, char *workgroup, uint32 stype,
cli               259 src/vfs/smbfs/helpers/include/proto.h BOOL cli_session_setup (struct cli_state *cli, char *user, char *pass, int passlen, char *ntpass,
cli               261 src/vfs/smbfs/helpers/include/proto.h BOOL cli_ulogoff (struct cli_state *cli);
cli               262 src/vfs/smbfs/helpers/include/proto.h BOOL cli_send_tconX (struct cli_state *cli,
cli               264 src/vfs/smbfs/helpers/include/proto.h BOOL cli_tdis (struct cli_state *cli);
cli               265 src/vfs/smbfs/helpers/include/proto.h BOOL cli_rename (struct cli_state *cli, char *fname_src, char *fname_dst);
cli               266 src/vfs/smbfs/helpers/include/proto.h BOOL cli_unlink (struct cli_state *cli, char *fname);
cli               267 src/vfs/smbfs/helpers/include/proto.h BOOL cli_mkdir (struct cli_state *cli, char *dname);
cli               268 src/vfs/smbfs/helpers/include/proto.h BOOL cli_rmdir (struct cli_state *cli, char *dname);
cli               269 src/vfs/smbfs/helpers/include/proto.h int cli_nt_create (struct cli_state *cli, char *fname);
cli               270 src/vfs/smbfs/helpers/include/proto.h int cli_open (struct cli_state *cli, char *fname, int flags, int share_mode);
cli               271 src/vfs/smbfs/helpers/include/proto.h BOOL cli_close (struct cli_state *cli, int fnum);
cli               272 src/vfs/smbfs/helpers/include/proto.h BOOL cli_lock (struct cli_state *cli, int fnum, uint32 offset, uint32 len, int timeout);
cli               273 src/vfs/smbfs/helpers/include/proto.h BOOL cli_unlock (struct cli_state *cli, int fnum, uint32 offset, uint32 len, int timeout);
cli               274 src/vfs/smbfs/helpers/include/proto.h size_t cli_read (struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size);
cli               275 src/vfs/smbfs/helpers/include/proto.h ssize_t cli_write (struct cli_state *cli,
cli               277 src/vfs/smbfs/helpers/include/proto.h ssize_t cli_smbwrite (struct cli_state *cli, int fnum, const char *buf, off_t offset, size_t size);
cli               278 src/vfs/smbfs/helpers/include/proto.h BOOL cli_getattrE (struct cli_state *cli, int fd,
cli               280 src/vfs/smbfs/helpers/include/proto.h BOOL cli_getatr (struct cli_state *cli, char *fname, uint16 * attr, size_t * size, time_t * t);
cli               281 src/vfs/smbfs/helpers/include/proto.h BOOL cli_setatr (struct cli_state *cli, char *fname, uint16 attr, time_t t);
cli               282 src/vfs/smbfs/helpers/include/proto.h BOOL cli_qpathinfo (struct cli_state *cli, const char *fname,
cli               285 src/vfs/smbfs/helpers/include/proto.h BOOL cli_qpathinfo2 (struct cli_state *cli, const char *fname,
cli               288 src/vfs/smbfs/helpers/include/proto.h BOOL cli_qfileinfo (struct cli_state *cli, int fnum,
cli               292 src/vfs/smbfs/helpers/include/proto.h int cli_list (struct cli_state *cli, const char *Mask, uint16 attribute,
cli               294 src/vfs/smbfs/helpers/include/proto.h BOOL cli_negprot (struct cli_state *cli);
cli               295 src/vfs/smbfs/helpers/include/proto.h BOOL cli_session_request (struct cli_state *cli, struct nmb_name *calling, struct nmb_name *called);
cli               296 src/vfs/smbfs/helpers/include/proto.h BOOL cli_connect (struct cli_state *cli, const char *host, struct in_addr *ip);
cli               297 src/vfs/smbfs/helpers/include/proto.h struct cli_state *cli_initialise (struct cli_state *cli);
cli               298 src/vfs/smbfs/helpers/include/proto.h void cli_shutdown (struct cli_state *cli);
cli               299 src/vfs/smbfs/helpers/include/proto.h int cli_error (struct cli_state *cli, uint8 * eclass, uint32 * num, uint32 * nt_rpc_error);
cli               300 src/vfs/smbfs/helpers/include/proto.h void cli_sockopt (struct cli_state *cli, char *options);
cli               301 src/vfs/smbfs/helpers/include/proto.h uint16 cli_setpid (struct cli_state *cli, uint16 pid);
cli               302 src/vfs/smbfs/helpers/include/proto.h BOOL cli_reestablish_connection (struct cli_state *cli);
cli               303 src/vfs/smbfs/helpers/include/proto.h BOOL cli_establish_connection (struct cli_state *cli,
cli               307 src/vfs/smbfs/helpers/include/proto.h BOOL cli_chkpath (struct cli_state *cli, char *path);
cli               308 src/vfs/smbfs/helpers/include/proto.h BOOL cli_message_start (struct cli_state *cli, char *host, char *username, int *grp);
cli               309 src/vfs/smbfs/helpers/include/proto.h BOOL cli_message_text (struct cli_state *cli, char *msg, int len, int grp);
cli               310 src/vfs/smbfs/helpers/include/proto.h BOOL cli_message_end (struct cli_state *cli, int grp);
cli               311 src/vfs/smbfs/helpers/include/proto.h BOOL cli_dskattr (struct cli_state *cli, int *bsize, int *total, int *avail);
cli                40 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_set_port (struct cli_state *cli, int port)
cli                43 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->port = port;
cli                45 src/vfs/smbfs/helpers/libsmb/clientgen.c     return cli->port;
cli                52 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_receive_smb (struct cli_state *cli)
cli                54 src/vfs/smbfs/helpers/libsmb/clientgen.c     return client_receive_smb (cli->fd, cli->inbuf, cli->timeout);
cli                61 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_send_smb (struct cli_state *cli)
cli                68 src/vfs/smbfs/helpers/libsmb/clientgen.c     len = smb_len (cli->outbuf) + 4;
cli                72 src/vfs/smbfs/helpers/libsmb/clientgen.c         ret = write_socket (cli->fd, cli->outbuf + nwritten, len - nwritten);
cli                75 src/vfs/smbfs/helpers/libsmb/clientgen.c             if (cli_reestablish_connection (cli))
cli               118 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_smb_errstr (struct cli_state *cli)
cli               120 src/vfs/smbfs/helpers/libsmb/clientgen.c     return smb_errstr (cli->inbuf);
cli               129 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_errstr (struct cli_state *cli)
cli               144 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_error (cli, &errclass, &errnum, &nt_rpc_error);
cli               148 src/vfs/smbfs/helpers/libsmb/clientgen.c         return cli_smb_errstr (cli);
cli               175 src/vfs/smbfs/helpers/libsmb/clientgen.c     slprintf (error_message, sizeof (error_message) - 1, "code %d", cli->rap_error);
cli               179 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (rap_errmap[i].err == cli->rap_error)
cli               193 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_setup_packet (struct cli_state *cli)
cli               195 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->rap_error = 0;
cli               196 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->nt_error = 0;
cli               197 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_pid, cli->pid);
cli               198 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_uid, cli->vuid);
cli               199 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_mid, cli->mid);
cli               200 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->protocol > PROTOCOL_CORE)
cli               202 src/vfs/smbfs/helpers/libsmb/clientgen.c         SCVAL (cli->outbuf, smb_flg, 0x8);
cli               203 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_flg2, 0x1);
cli               241 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_send_trans (struct cli_state *cli, int trans,
cli               253 src/vfs/smbfs/helpers/libsmb/clientgen.c     this_lparam = MIN (lparam, cli->max_xmit - (500 + lsetup * 2));     /* hack */
cli               254 src/vfs/smbfs/helpers/libsmb/clientgen.c     this_ldata = MIN (ldata, cli->max_xmit - (500 + lsetup * 2 + this_lparam));
cli               256 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli               257 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 14 + lsetup, 0, True);
cli               258 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = trans;
cli               259 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli               260 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli               262 src/vfs/smbfs/helpers/libsmb/clientgen.c     outparam = smb_buf (cli->outbuf) + (trans == SMBtrans ? pipe_name_len + 1 : 3);
cli               266 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tpscnt, lparam);    /* tpscnt */
cli               267 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tdscnt, ldata);     /* tdscnt */
cli               268 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_mprcnt, mparam);    /* mprcnt */
cli               269 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_mdrcnt, mdata);     /* mdrcnt */
cli               270 src/vfs/smbfs/helpers/libsmb/clientgen.c     SCVAL (cli->outbuf, smb_msrcnt, msetup);    /* msrcnt */
cli               271 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_flags, flags);      /* flags */
cli               272 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_timeout, 0);        /* timeout */
cli               273 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_pscnt, this_lparam);        /* pscnt */
cli               274 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_psoff, smb_offset (outparam, cli->outbuf)); /* psoff */
cli               275 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_dscnt, this_ldata); /* dscnt */
cli               276 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_dsoff, smb_offset (outdata, cli->outbuf));  /* dsoff */
cli               277 src/vfs/smbfs/helpers/libsmb/clientgen.c     SCVAL (cli->outbuf, smb_suwcnt, lsetup);    /* suwcnt */
cli               279 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_setup + i * 2, setup[i]);
cli               280 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli               295 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 14 + lsetup,      /* wcnt, bcc */
cli               296 src/vfs/smbfs/helpers/libsmb/clientgen.c                  PTR_DIFF (outdata + this_ldata, smb_buf (cli->outbuf)), False);
cli               298 src/vfs/smbfs/helpers/libsmb/clientgen.c     show_msg (cli->outbuf);
cli               299 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli               304 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_receive_smb (cli) || CVAL (cli->inbuf, smb_rcls) != 0)
cli               314 src/vfs/smbfs/helpers/libsmb/clientgen.c             this_lparam = MIN (lparam - tot_param, cli->max_xmit - 500);        /* hack */
cli               315 src/vfs/smbfs/helpers/libsmb/clientgen.c             this_ldata = MIN (ldata - tot_data, cli->max_xmit - (500 + this_lparam));
cli               317 src/vfs/smbfs/helpers/libsmb/clientgen.c             set_message (cli->outbuf, trans == SMBtrans ? 8 : 9, 0, True);
cli               318 src/vfs/smbfs/helpers/libsmb/clientgen.c             CVAL (cli->outbuf, smb_com) = trans == SMBtrans ? SMBtranss : SMBtranss2;
cli               320 src/vfs/smbfs/helpers/libsmb/clientgen.c             outparam = smb_buf (cli->outbuf);
cli               324 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_tpscnt, lparam);    /* tpscnt */
cli               325 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_tdscnt, ldata);     /* tdscnt */
cli               326 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_spscnt, this_lparam);       /* pscnt */
cli               327 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_spsoff, smb_offset (outparam, cli->outbuf));        /* psoff */
cli               328 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_spsdisp, tot_param);        /* psdisp */
cli               329 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_sdscnt, this_ldata);        /* dscnt */
cli               330 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_sdsoff, smb_offset (outdata, cli->outbuf)); /* dsoff */
cli               331 src/vfs/smbfs/helpers/libsmb/clientgen.c             SSVAL (cli->outbuf, smb_sdsdisp, tot_data); /* dsdisp */
cli               333 src/vfs/smbfs/helpers/libsmb/clientgen.c                 SSVALS (cli->outbuf, smb_sfid, fid);    /* fid */
cli               338 src/vfs/smbfs/helpers/libsmb/clientgen.c             set_message (cli->outbuf, trans == SMBtrans ? 8 : 9,        /* wcnt, bcc */
cli               339 src/vfs/smbfs/helpers/libsmb/clientgen.c                          PTR_DIFF (outdata + this_ldata, smb_buf (cli->outbuf)), False);
cli               341 src/vfs/smbfs/helpers/libsmb/clientgen.c             show_msg (cli->outbuf);
cli               342 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli_send_smb (cli);
cli               357 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_receive_trans (struct cli_state *cli, int trans,
cli               368 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli               371 src/vfs/smbfs/helpers/libsmb/clientgen.c     show_msg (cli->inbuf);
cli               374 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_com) != trans)
cli               377 src/vfs/smbfs/helpers/libsmb/clientgen.c                    trans == SMBtrans ? "SMBtrans" : "SMBtrans2", CVAL (cli->inbuf, smb_com)));
cli               387 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_error (cli, &eclass, &ecode, NULL))
cli               389 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (cli->nt_pipe_fnum == 0 || !(eclass == ERRDOS && ecode == ERRmoredata))
cli               394 src/vfs/smbfs/helpers/libsmb/clientgen.c     total_data = SVAL (cli->inbuf, smb_tdrcnt);
cli               395 src/vfs/smbfs/helpers/libsmb/clientgen.c     total_param = SVAL (cli->inbuf, smb_tprcnt);
cli               403 src/vfs/smbfs/helpers/libsmb/clientgen.c         this_data = SVAL (cli->inbuf, smb_drcnt);
cli               404 src/vfs/smbfs/helpers/libsmb/clientgen.c         this_param = SVAL (cli->inbuf, smb_prcnt);
cli               413 src/vfs/smbfs/helpers/libsmb/clientgen.c             memcpy (*data + SVAL (cli->inbuf, smb_drdisp),
cli               414 src/vfs/smbfs/helpers/libsmb/clientgen.c                     smb_base (cli->inbuf) + SVAL (cli->inbuf, smb_droff), this_data);
cli               416 src/vfs/smbfs/helpers/libsmb/clientgen.c             memcpy (*param + SVAL (cli->inbuf, smb_prdisp),
cli               417 src/vfs/smbfs/helpers/libsmb/clientgen.c                     smb_base (cli->inbuf) + SVAL (cli->inbuf, smb_proff), this_param);
cli               422 src/vfs/smbfs/helpers/libsmb/clientgen.c         total_data = SVAL (cli->inbuf, smb_tdrcnt);
cli               423 src/vfs/smbfs/helpers/libsmb/clientgen.c         total_param = SVAL (cli->inbuf, smb_tprcnt);
cli               428 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_receive_smb (cli))
cli               431 src/vfs/smbfs/helpers/libsmb/clientgen.c         show_msg (cli->inbuf);
cli               434 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (CVAL (cli->inbuf, smb_com) != trans)
cli               437 src/vfs/smbfs/helpers/libsmb/clientgen.c                        trans == SMBtrans ? "SMBtrans" : "SMBtrans2", CVAL (cli->inbuf, smb_com)));
cli               440 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (cli_error (cli, &eclass, &ecode, NULL))
cli               442 src/vfs/smbfs/helpers/libsmb/clientgen.c             if (cli->nt_pipe_fnum == 0 || !(eclass == ERRDOS && ecode == ERRmoredata))
cli               455 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_api_pipe (struct cli_state * cli, char *pipe_name, int pipe_name_len,
cli               464 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_trans (cli, SMBtrans, pipe_name, pipe_name_len, 0, 0,      /* fid, flags */
cli               468 src/vfs/smbfs/helpers/libsmb/clientgen.c     return (cli_receive_trans (cli, SMBtrans,
cli               477 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_api (struct cli_state *cli,
cli               481 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_trans (cli, SMBtrans, PIPE_LANMAN, strlen (PIPE_LANMAN),   /* Name, length */
cli               488 src/vfs/smbfs/helpers/libsmb/clientgen.c     return (cli_receive_trans (cli, SMBtrans, rparam, rprcnt, rdata, rdrcnt));
cli               496 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_NetWkstaUserLogon (struct cli_state * cli, char *user, char *workstation)
cli               530 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_api (cli, param, PTR_DIFF (p, param), 1024, /* param, length, max */
cli               536 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->rap_error = SVAL (rparam, 0);
cli               539 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (cli->rap_error == 0)
cli               542 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli->privileges = SVAL (p, 24);
cli               543 src/vfs/smbfs/helpers/libsmb/clientgen.c             fstrcpy (cli->eff_name, p + 2);
cli               547 src/vfs/smbfs/helpers/libsmb/clientgen.c             DEBUG (1, ("NetwkstaUserLogon gave error %d\n", cli->rap_error));
cli               555 src/vfs/smbfs/helpers/libsmb/clientgen.c     return (cli->rap_error == 0);
cli               563 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_RNetShareEnum (struct cli_state *cli, void (*fn) (const char *, uint32, const char *, void *),
cli               589 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_api (cli, param, PTR_DIFF (p, param), 1024, /* Param, length, maxlen */
cli               639 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_NetServerEnum (struct cli_state * cli, char *workgroup, uint32 stype,
cli               669 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_api (cli, param, PTR_DIFF (p, param), 8,    /* params, length, max */
cli               732 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_session_setup (struct cli_state *cli,
cli               739 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->protocol < PROTOCOL_LANMAN1)
cli               755 src/vfs/smbfs/helpers/libsmb/clientgen.c         if ((cli->sec_mode & 2) && passlen != 24)
cli               759 src/vfs/smbfs/helpers/libsmb/clientgen.c             SMBencrypt ((uchar *) pass, (uchar *) cli->cryptkey, (uchar *) pword);
cli               760 src/vfs/smbfs/helpers/libsmb/clientgen.c             SMBNTencrypt ((uchar *) ntpass, (uchar *) cli->cryptkey, (uchar *) ntpword);
cli               771 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!(cli->sec_mode & 1))
cli               780 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli               782 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->protocol < PROTOCOL_NT1)
cli               784 src/vfs/smbfs/helpers/libsmb/clientgen.c         set_message (cli->outbuf, 10, 1 + strlen (user) + passlen, True);
cli               785 src/vfs/smbfs/helpers/libsmb/clientgen.c         CVAL (cli->outbuf, smb_com) = SMBsesssetupX;
cli               786 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli_setup_packet (cli);
cli               788 src/vfs/smbfs/helpers/libsmb/clientgen.c         CVAL (cli->outbuf, smb_vwv0) = 0xFF;
cli               789 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv2, cli->max_xmit);
cli               790 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv3, 2);
cli               791 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv4, 1);
cli               792 src/vfs/smbfs/helpers/libsmb/clientgen.c         SIVAL (cli->outbuf, smb_vwv5, cli->sesskey);
cli               793 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv7, passlen);
cli               794 src/vfs/smbfs/helpers/libsmb/clientgen.c         p = smb_buf (cli->outbuf);
cli               803 src/vfs/smbfs/helpers/libsmb/clientgen.c         set_message (cli->outbuf, 13, 0, True);
cli               804 src/vfs/smbfs/helpers/libsmb/clientgen.c         CVAL (cli->outbuf, smb_com) = SMBsesssetupX;
cli               805 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli_setup_packet (cli);
cli               807 src/vfs/smbfs/helpers/libsmb/clientgen.c         CVAL (cli->outbuf, smb_vwv0) = 0xFF;
cli               808 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv2, CLI_BUFFER_SIZE);
cli               809 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv3, 2);
cli               810 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv4, cli->pid);
cli               811 src/vfs/smbfs/helpers/libsmb/clientgen.c         SIVAL (cli->outbuf, smb_vwv5, cli->sesskey);
cli               812 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv7, passlen);
cli               813 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv8, ntpasslen);
cli               814 src/vfs/smbfs/helpers/libsmb/clientgen.c         SSVAL (cli->outbuf, smb_vwv11, 0);
cli               815 src/vfs/smbfs/helpers/libsmb/clientgen.c         p = smb_buf (cli->outbuf);
cli               817 src/vfs/smbfs/helpers/libsmb/clientgen.c         p += SVAL (cli->outbuf, smb_vwv7);
cli               819 src/vfs/smbfs/helpers/libsmb/clientgen.c         p += SVAL (cli->outbuf, smb_vwv8);
cli               831 src/vfs/smbfs/helpers/libsmb/clientgen.c         set_message (cli->outbuf, 13, PTR_DIFF (p, smb_buf (cli->outbuf)), False);
cli               834 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli               835 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli               838 src/vfs/smbfs/helpers/libsmb/clientgen.c     show_msg (cli->inbuf);
cli               840 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli               846 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->vuid = SVAL (cli->inbuf, smb_uid);
cli               848 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->protocol >= PROTOCOL_NT1)
cli               855 src/vfs/smbfs/helpers/libsmb/clientgen.c         server_os = smb_buf (cli->inbuf);
cli               858 src/vfs/smbfs/helpers/libsmb/clientgen.c         fstrcpy (cli->server_os, server_os);
cli               859 src/vfs/smbfs/helpers/libsmb/clientgen.c         fstrcpy (cli->server_type, server_type);
cli               860 src/vfs/smbfs/helpers/libsmb/clientgen.c         fstrcpy (cli->server_domain, server_domain);
cli               863 src/vfs/smbfs/helpers/libsmb/clientgen.c     fstrcpy (cli->user_name, user);
cli               873 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_ulogoff (struct cli_state * cli)
cli               875 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli               876 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 2, 0, True);
cli               877 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBulogoffX;
cli               878 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli               879 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, 0xFF);
cli               880 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv2, 0);   /* no additional info */
cli               882 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli               883 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli               886 src/vfs/smbfs/helpers/libsmb/clientgen.c     return CVAL (cli->inbuf, smb_rcls) == 0;
cli               894 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_send_tconX (struct cli_state * cli,
cli               899 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli               900 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli               902 src/vfs/smbfs/helpers/libsmb/clientgen.c     fstrcpy (cli->share, share);
cli               905 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->sec_mode & 1)
cli               911 src/vfs/smbfs/helpers/libsmb/clientgen.c     if ((cli->sec_mode & 2) && *pass && passlen != 24)
cli               914 src/vfs/smbfs/helpers/libsmb/clientgen.c         SMBencrypt ((uchar *) pass, (uchar *) cli->cryptkey, (uchar *) pword);
cli               921 src/vfs/smbfs/helpers/libsmb/clientgen.c     slprintf (fullshare, sizeof (fullshare) - 1, "\\\\%s\\%s", cli->desthost, share);
cli               925 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 4, 2 + strlen (fullshare) + passlen + strlen (dev), True);
cli               926 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBtconX;
cli               927 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli               929 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, 0xFF);
cli               930 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv3, passlen);
cli               932 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli               939 src/vfs/smbfs/helpers/libsmb/clientgen.c     SCVAL (cli->inbuf, smb_rcls, 1);
cli               941 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli               942 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli               945 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli               950 src/vfs/smbfs/helpers/libsmb/clientgen.c     fstrcpy (cli->dev, "A:");
cli               952 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->protocol >= PROTOCOL_NT1)
cli               954 src/vfs/smbfs/helpers/libsmb/clientgen.c         fstrcpy (cli->dev, smb_buf (cli->inbuf));
cli               959 src/vfs/smbfs/helpers/libsmb/clientgen.c         fstrcpy (cli->dev, "IPC");
cli               963 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->protocol >= PROTOCOL_NT1 && smb_buflen (cli->inbuf) == 3)
cli               966 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->win95 = True;
cli               969 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->cnum = SVAL (cli->inbuf, smb_tid);
cli               978 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_tdis (struct cli_state * cli)
cli               980 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli               981 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, 0, True);
cli               982 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBtdis;
cli               983 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli               984 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli               986 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli               987 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli               990 src/vfs/smbfs/helpers/libsmb/clientgen.c     return CVAL (cli->inbuf, smb_rcls) == 0;
cli               998 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_rename (struct cli_state * cli, char *fname_src, char *fname_dst)
cli              1002 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1003 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1005 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 1, 4 + strlen (fname_src) + strlen (fname_dst), True);
cli              1007 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBmv;
cli              1008 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1009 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1011 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, aSYSTEM | aHIDDEN);
cli              1013 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1020 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1021 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1026 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1038 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_unlink (struct cli_state * cli, char *fname)
cli              1042 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1043 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1045 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 1, 2 + strlen (fname), True);
cli              1047 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBunlink;
cli              1048 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1049 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1051 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, aSYSTEM | aHIDDEN);
cli              1053 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1057 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1058 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1063 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1075 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_mkdir (struct cli_state * cli, char *dname)
cli              1079 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1080 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1082 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, 2 + strlen (dname), True);
cli              1084 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBmkdir;
cli              1085 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1086 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1088 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1092 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1093 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1098 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1110 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_rmdir (struct cli_state * cli, char *dname)
cli              1114 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1115 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1117 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, 2 + strlen (dname), True);
cli              1119 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBrmdir;
cli              1120 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1121 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1123 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1127 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1128 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1133 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1146 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_nt_create (struct cli_state *cli, char *fname)
cli              1150 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1151 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1153 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 24, 1 + strlen (fname), True);
cli              1155 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBntcreateX;
cli              1156 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1157 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1159 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, 0xFF);
cli              1160 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_Flags, 0x06);
cli              1161 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_RootDirectoryFid, 0x0);
cli              1162 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_DesiredAccess, 0x2019f);
cli              1163 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_FileAttributes, 0x0);
cli              1164 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_ShareAccess, 0x03);
cli              1165 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_CreateDisposition, 0x01);
cli              1166 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_CreateOptions, 0x0);
cli              1167 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_ntcreate_ImpersonationLevel, 0x02);
cli              1168 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_ntcreate_NameLength, strlen (fname));
cli              1170 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1174 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1175 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1180 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1185 src/vfs/smbfs/helpers/libsmb/clientgen.c     return SVAL (cli->inbuf, smb_vwv2 + 1);
cli              1193 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_open (struct cli_state *cli, char *fname, int flags, int share_mode)
cli              1201 src/vfs/smbfs/helpers/libsmb/clientgen.c     if ((flags & O_ACCMODE) == O_WRONLY && strncmp (cli->dev, "LPT", 3))
cli              1234 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1235 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1237 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 15, 1 + strlen (fname), True);
cli              1239 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBopenX;
cli              1240 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1241 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1243 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, 0xFF);
cli              1244 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv2, 0);   /* no additional info */
cli              1245 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv3, accessmode);
cli              1246 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv4, aSYSTEM | aHIDDEN);
cli              1247 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv5, 0);
cli              1248 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv8, openfn);
cli              1250 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1254 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1255 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1260 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1265 src/vfs/smbfs/helpers/libsmb/clientgen.c     return SVAL (cli->inbuf, smb_vwv2);
cli              1275 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_close (struct cli_state * cli, int fnum)
cli              1277 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1278 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1280 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 3, 0, True);
cli              1282 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBclose;
cli              1283 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1284 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1286 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, fnum);
cli              1287 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVALS (cli->outbuf, smb_vwv1, -1);
cli              1289 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1290 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1295 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1308 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_lock (struct cli_state * cli, int fnum, uint32 offset, uint32 len, int timeout)
cli              1311 src/vfs/smbfs/helpers/libsmb/clientgen.c     int saved_timeout = cli->timeout;
cli              1313 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1314 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1316 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 8, 10, True);
cli              1318 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBlockingX;
cli              1319 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1320 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1322 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_vwv0) = 0xFF;
cli              1323 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv2, fnum);
cli              1324 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_vwv3) = 0;
cli              1325 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVALS (cli->outbuf, smb_vwv4, timeout);
cli              1326 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv6, 0);
cli              1327 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv7, 1);
cli              1329 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1330 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (p, 0, cli->pid);
cli              1333 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1335 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->timeout = (timeout == -1) ? 0x7FFFFFFF : timeout;
cli              1337 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1339 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->timeout = saved_timeout;
cli              1343 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->timeout = saved_timeout;
cli              1345 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1357 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_unlock (struct cli_state * cli, int fnum, uint32 offset, uint32 len, int timeout)
cli              1361 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1362 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1364 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 8, 10, True);
cli              1366 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBlockingX;
cli              1367 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1368 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1370 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_vwv0) = 0xFF;
cli              1371 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv2, fnum);
cli              1372 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_vwv3) = 0;
cli              1373 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVALS (cli->outbuf, smb_vwv4, timeout);
cli              1374 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv6, 1);
cli              1375 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv7, 0);
cli              1377 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1378 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (p, 0, cli->pid);
cli              1382 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1383 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1388 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1402 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_issue_read (struct cli_state *cli, int fnum, off_t offset, size_t size, int i)
cli              1404 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1405 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1407 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 10, 0, True);
cli              1409 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBreadX;
cli              1410 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1411 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1413 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_vwv0) = 0xFF;
cli              1414 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv2, fnum);
cli              1415 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_vwv3, offset);
cli              1416 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv5, size);
cli              1417 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv6, size);
cli              1418 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_mid, cli->mid + i);
cli              1420 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1427 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_read (struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size)
cli              1433 src/vfs/smbfs/helpers/libsmb/clientgen.c     int mpx = MAX (cli->max_mux - 1, 1);
cli              1434 src/vfs/smbfs/helpers/libsmb/clientgen.c     int block = (cli->max_xmit - (smb_size + 32)) & ~1023;
cli              1448 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli_issue_read (cli, fnum, offset + issued * block, size1, issued);
cli              1452 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_receive_smb (cli))
cli              1458 src/vfs/smbfs/helpers/libsmb/clientgen.c         mid = SVAL (cli->inbuf, smb_mid) - cli->mid;
cli              1459 src/vfs/smbfs/helpers/libsmb/clientgen.c         size2 = SVAL (cli->inbuf, smb_vwv5);
cli              1461 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1485 src/vfs/smbfs/helpers/libsmb/clientgen.c         p = smb_base (cli->inbuf) + SVAL (cli->inbuf, smb_vwv6);
cli              1494 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli_receive_smb (cli);
cli              1506 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_issue_write (struct cli_state *cli, int fnum, off_t offset, uint16 mode, const char *buf,
cli              1511 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1512 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1514 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 12, size, True);
cli              1516 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBwriteX;
cli              1517 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1518 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1520 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_vwv0) = 0xFF;
cli              1521 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv2, fnum);
cli              1523 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_vwv3, offset);
cli              1524 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_vwv5, IS_BITS_SET_ALL (mode, 0x0008) ? 0xFFFFFFFF : 0);
cli              1525 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv7, mode);
cli              1527 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv8, IS_BITS_SET_ALL (mode, 0x0008) ? size : 0);
cli              1528 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv10, size);
cli              1529 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv11, smb_buf (cli->outbuf) - smb_base (cli->outbuf));
cli              1531 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_base (cli->outbuf) + SVAL (cli->outbuf, smb_vwv11);
cli              1534 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_mid, cli->mid + i);
cli              1536 src/vfs/smbfs/helpers/libsmb/clientgen.c     show_msg (cli->outbuf);
cli              1537 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1548 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_write (struct cli_state *cli,
cli              1554 src/vfs/smbfs/helpers/libsmb/clientgen.c     int mpx = MAX (cli->max_mux - 1, 1);
cli              1555 src/vfs/smbfs/helpers/libsmb/clientgen.c     int block = (cli->max_xmit - (smb_size + 32)) & ~1023;
cli              1566 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli_issue_write (cli, fnum, offset + bsent, write_mode, buf + bsent, size1, issued);
cli              1570 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_receive_smb (cli))
cli              1577 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1582 src/vfs/smbfs/helpers/libsmb/clientgen.c         bwritten += SVAL (cli->inbuf, smb_vwv2);
cli              1585 src/vfs/smbfs/helpers/libsmb/clientgen.c     while (received < issued && cli_receive_smb (cli))
cli              1598 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_smbwrite (struct cli_state * cli, int fnum, const char *buf, off_t offset, size_t size)
cli              1602 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1603 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1605 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 5, 3 + size, True);
cli              1607 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBwrite;
cli              1608 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1609 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1611 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, fnum);
cli              1612 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv1, size);
cli              1613 src/vfs/smbfs/helpers/libsmb/clientgen.c     SIVAL (cli->outbuf, smb_vwv2, offset);
cli              1614 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv4, 0);
cli              1616 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1621 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1622 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1627 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1632 src/vfs/smbfs/helpers/libsmb/clientgen.c     return SVAL (cli->inbuf, smb_vwv0);
cli              1640 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_getattrE (struct cli_state * cli, int fd,
cli              1643 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1644 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1646 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 2, 0, True);
cli              1648 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBgetattrE;
cli              1649 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1650 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1652 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, fd);
cli              1654 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1655 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1660 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1667 src/vfs/smbfs/helpers/libsmb/clientgen.c         *size = IVAL (cli->inbuf, smb_vwv6);
cli              1672 src/vfs/smbfs/helpers/libsmb/clientgen.c         *attr = SVAL (cli->inbuf, smb_vwv10);
cli              1677 src/vfs/smbfs/helpers/libsmb/clientgen.c         *c_time = make_unix_date3 (cli->inbuf + smb_vwv0);
cli              1682 src/vfs/smbfs/helpers/libsmb/clientgen.c         *a_time = make_unix_date3 (cli->inbuf + smb_vwv2);
cli              1687 src/vfs/smbfs/helpers/libsmb/clientgen.c         *m_time = make_unix_date3 (cli->inbuf + smb_vwv4);
cli              1698 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_getatr (struct cli_state * cli, char *fname, uint16 * attr, size_t * size, time_t * t)
cli              1702 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1703 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1705 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, strlen (fname) + 2, True);
cli              1707 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBgetatr;
cli              1708 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1709 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1711 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1715 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1716 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1721 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1728 src/vfs/smbfs/helpers/libsmb/clientgen.c         *size = IVAL (cli->inbuf, smb_vwv3);
cli              1733 src/vfs/smbfs/helpers/libsmb/clientgen.c         *t = make_unix_date3 (cli->inbuf + smb_vwv1);
cli              1738 src/vfs/smbfs/helpers/libsmb/clientgen.c         *attr = SVAL (cli->inbuf, smb_vwv0);
cli              1750 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_setatr (struct cli_state * cli, char *fname, uint16 attr, time_t t)
cli              1754 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              1755 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->inbuf, '\0', smb_size);
cli              1757 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 8, strlen (fname) + 4, True);
cli              1759 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBsetatr;
cli              1760 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              1761 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              1763 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, attr);
cli              1764 src/vfs/smbfs/helpers/libsmb/clientgen.c     put_dos_date3 (cli->outbuf, smb_vwv1, t);
cli              1766 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              1772 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              1773 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              1778 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0)
cli              1791 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_qpathinfo (struct cli_state * cli, const char *fname,
cli              1811 src/vfs/smbfs/helpers/libsmb/clientgen.c         ret = (cli_send_trans (cli, SMBtrans2, NULL, 0, /* Name, length */
cli              1815 src/vfs/smbfs/helpers/libsmb/clientgen.c                                NULL, data_len, cli->max_xmit    /* data, length, max */
cli              1816 src/vfs/smbfs/helpers/libsmb/clientgen.c                ) && cli_receive_trans (cli, SMBtrans2, &rparam, &param_len, &rdata, &data_len));
cli              1823 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli_error (cli, &eclass, &ecode, NULL);
cli              1836 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->win95)
cli              1877 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_qpathinfo2 (struct cli_state * cli, const char *fname,
cli              1893 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_send_trans (cli, SMBtrans2, NULL, 0,       /* name, length */
cli              1897 src/vfs/smbfs/helpers/libsmb/clientgen.c                          NULL, data_len, cli->max_xmit  /* data, length, max */
cli              1903 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_trans (cli, SMBtrans2, &rparam, &param_len, &rdata, &data_len))
cli              1915 src/vfs/smbfs/helpers/libsmb/clientgen.c         *c_time = interpret_long_date (rdata + 0) - cli->serverzone;
cli              1919 src/vfs/smbfs/helpers/libsmb/clientgen.c         *a_time = interpret_long_date (rdata + 8) - cli->serverzone;
cli              1923 src/vfs/smbfs/helpers/libsmb/clientgen.c         *m_time = interpret_long_date (rdata + 16) - cli->serverzone;
cli              1927 src/vfs/smbfs/helpers/libsmb/clientgen.c         *w_time = interpret_long_date (rdata + 24) - cli->serverzone;
cli              1954 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_qfileinfo (struct cli_state * cli, int fnum,
cli              1966 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->win95)
cli              1975 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_send_trans (cli, SMBtrans2, NULL, 0,       /* name, length */
cli              1979 src/vfs/smbfs/helpers/libsmb/clientgen.c                          NULL, data_len, cli->max_xmit  /* data, length, max */
cli              1985 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_trans (cli, SMBtrans2, &rparam, &param_len, &rdata, &data_len))
cli              1997 src/vfs/smbfs/helpers/libsmb/clientgen.c         *c_time = interpret_long_date (rdata + 0) - cli->serverzone;
cli              2001 src/vfs/smbfs/helpers/libsmb/clientgen.c         *a_time = interpret_long_date (rdata + 8) - cli->serverzone;
cli              2005 src/vfs/smbfs/helpers/libsmb/clientgen.c         *m_time = interpret_long_date (rdata + 16) - cli->serverzone;
cli              2009 src/vfs/smbfs/helpers/libsmb/clientgen.c         *w_time = interpret_long_date (rdata + 24) - cli->serverzone;
cli              2156 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_list (struct cli_state *cli, const char *Mask, uint16 attribute,
cli              2161 src/vfs/smbfs/helpers/libsmb/clientgen.c     int info_level = cli->protocol < PROTOCOL_NT1 ? 1 : 260;
cli              2219 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_send_trans (cli, SMBtrans2, NULL, 0,   /* Name, length */
cli              2223 src/vfs/smbfs/helpers/libsmb/clientgen.c                              NULL, 0, cli->max_xmit     /* data, length, max */
cli              2229 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_receive_trans (cli, SMBtrans2, &rparam, &param_len, &rdata, &data_len))
cli              2235 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli_error (cli, &eclass, &ecode, NULL);
cli              2338 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_negprot (struct cli_state * cli)
cli              2344 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              2348 src/vfs/smbfs/helpers/libsmb/clientgen.c          prots[numprots].name && prots[numprots].prot <= cli->protocol; numprots++)
cli              2351 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, plength, True);
cli              2353 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              2354 src/vfs/smbfs/helpers/libsmb/clientgen.c     for (numprots = 0; prots[numprots].name && prots[numprots].prot <= cli->protocol; numprots++)
cli              2361 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBnegprot;
cli              2362 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              2364 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (smb_buf (cli->outbuf), 0) = 2;
cli              2366 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              2367 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              2370 src/vfs/smbfs/helpers/libsmb/clientgen.c     show_msg (cli->inbuf);
cli              2372 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, smb_rcls) != 0 || ((int) SVAL (cli->inbuf, smb_vwv0) >= numprots))
cli              2377 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->protocol = prots[SVAL (cli->inbuf, smb_vwv0)].prot;
cli              2380 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->protocol >= PROTOCOL_NT1)
cli              2383 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->sec_mode = CVAL (cli->inbuf, smb_vwv1);
cli              2384 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->max_mux = SVAL (cli->inbuf, smb_vwv1 + 1);
cli              2385 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->max_xmit = IVAL (cli->inbuf, smb_vwv3 + 1);
cli              2386 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->sesskey = IVAL (cli->inbuf, smb_vwv7 + 1);
cli              2387 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->serverzone = SVALS (cli->inbuf, smb_vwv15 + 1) * 60;
cli              2389 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->servertime = interpret_long_date (cli->inbuf + smb_vwv11 + 1);
cli              2390 src/vfs/smbfs/helpers/libsmb/clientgen.c         memcpy (cli->cryptkey, smb_buf (cli->inbuf), 8);
cli              2391 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->capabilities = IVAL (cli->inbuf, smb_vwv9 + 1);
cli              2392 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (cli->capabilities & 1)
cli              2394 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli->readbraw_supported = True;
cli              2395 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli->writebraw_supported = True;
cli              2398 src/vfs/smbfs/helpers/libsmb/clientgen.c     else if (cli->protocol >= PROTOCOL_LANMAN1)
cli              2400 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->sec_mode = SVAL (cli->inbuf, smb_vwv1);
cli              2401 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->max_xmit = SVAL (cli->inbuf, smb_vwv2);
cli              2402 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->sesskey = IVAL (cli->inbuf, smb_vwv6);
cli              2403 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->serverzone = SVALS (cli->inbuf, smb_vwv10) * 60;
cli              2405 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->servertime = make_unix_date (cli->inbuf + smb_vwv8);
cli              2406 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->readbraw_supported = ((SVAL (cli->inbuf, smb_vwv5) & 0x1) != 0);
cli              2407 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->writebraw_supported = ((SVAL (cli->inbuf, smb_vwv5) & 0x2) != 0);
cli              2408 src/vfs/smbfs/helpers/libsmb/clientgen.c         memcpy (cli->cryptkey, smb_buf (cli->inbuf), 8);
cli              2413 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->sec_mode = 0;
cli              2414 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->serverzone = TimeDiff (time (NULL));
cli              2417 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->max_xmit = MIN (cli->max_xmit, CLI_BUFFER_SIZE);
cli              2427 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_session_request (struct cli_state * cli, struct nmb_name * calling, struct nmb_name * called)
cli              2433 src/vfs/smbfs/helpers/libsmb/clientgen.c     memcpy (&(cli->calling), calling, sizeof (*calling));
cli              2434 src/vfs/smbfs/helpers/libsmb/clientgen.c     memcpy (&(cli->called), called, sizeof (*called));
cli              2437 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = cli->outbuf + len;
cli              2438 src/vfs/smbfs/helpers/libsmb/clientgen.c     name_mangle (cli->called.name, p, cli->called.name_type);
cli              2442 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = cli->outbuf + len;
cli              2443 src/vfs/smbfs/helpers/libsmb/clientgen.c     name_mangle (cli->calling.name, p, cli->calling.name_type);
cli              2447 src/vfs/smbfs/helpers/libsmb/clientgen.c     _smb_setlen (cli->outbuf, len);
cli              2448 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, 0) = 0x81;
cli              2454 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              2457 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              2460 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, 0) == 0x84)
cli              2473 src/vfs/smbfs/helpers/libsmb/clientgen.c         int port = (CVAL (cli->inbuf, 8) << 8) + CVAL (cli->inbuf, 9);
cli              2475 src/vfs/smbfs/helpers/libsmb/clientgen.c         putip ((char *) &cli->dest_ip, cli->inbuf + 4);
cli              2478 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->fd = open_socket_out (SOCK_STREAM, &cli->dest_ip, port, LONG_CONNECT_TIMEOUT);
cli              2479 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (cli->fd == -1)
cli              2484 src/vfs/smbfs/helpers/libsmb/clientgen.c         set_socket_options (cli->fd, user_socket_options);
cli              2487 src/vfs/smbfs/helpers/libsmb/clientgen.c         return cli_session_request (cli, calling, called);
cli              2491 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, 0) == 0x83 && CVAL (cli->inbuf, 4) == 0x8e)
cli              2493 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!sslutil_fd_is_ssl (cli->fd))
cli              2495 src/vfs/smbfs/helpers/libsmb/clientgen.c             if (sslutil_connect (cli->fd) == 0)
cli              2501 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (CVAL (cli->inbuf, 0) != 0x82)
cli              2504 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->rap_error = CVAL (cli->inbuf, 0);
cli              2515 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_connect (struct cli_state * cli, const char *host, struct in_addr * ip)
cli              2519 src/vfs/smbfs/helpers/libsmb/clientgen.c     fstrcpy (cli->desthost, host);
cli              2523 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!resolve_name (cli->desthost, &cli->dest_ip, 0x20))
cli              2528 src/vfs/smbfs/helpers/libsmb/clientgen.c             *ip = cli->dest_ip;
cli              2532 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->dest_ip = *ip;
cli              2535 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->port == 0)
cli              2536 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli->port = 139;        /* Set to default */
cli              2538 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->fd = open_socket_out (SOCK_STREAM, &cli->dest_ip, cli->port, cli->timeout);
cli              2539 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->fd == -1)
cli              2550 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_initialise (struct cli_state *cli)
cli              2552 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli)
cli              2554 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli = (struct cli_state *) malloc (sizeof (*cli));
cli              2555 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli)
cli              2557 src/vfs/smbfs/helpers/libsmb/clientgen.c         ZERO_STRUCTP (cli);
cli              2560 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->initialised)
cli              2562 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli_shutdown (cli);
cli              2565 src/vfs/smbfs/helpers/libsmb/clientgen.c     ZERO_STRUCTP (cli);
cli              2567 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->port = 0;
cli              2568 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->fd = -1;
cli              2569 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->cnum = -1;
cli              2570 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->pid = (uint16) getpid ();
cli              2571 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->mid = 1;
cli              2572 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->vuid = UID_FIELD_INVALID;
cli              2573 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->protocol = PROTOCOL_NT1;
cli              2574 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->timeout = 20000;       /* Timeout is in milliseconds. */
cli              2575 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->bufsize = CLI_BUFFER_SIZE + 4;
cli              2576 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->max_xmit = cli->bufsize;
cli              2577 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->outbuf = (char *) malloc (cli->bufsize);
cli              2578 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->inbuf = (char *) malloc (cli->bufsize);
cli              2579 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli->outbuf || !cli->inbuf)
cli              2584 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->initialised = 1;
cli              2586 src/vfs/smbfs/helpers/libsmb/clientgen.c     return cli;
cli              2593 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_shutdown (struct cli_state *cli)
cli              2595 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->outbuf)
cli              2597 src/vfs/smbfs/helpers/libsmb/clientgen.c         free (cli->outbuf);
cli              2599 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->inbuf)
cli              2601 src/vfs/smbfs/helpers/libsmb/clientgen.c         free (cli->inbuf);
cli              2604 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->fd != -1)
cli              2605 src/vfs/smbfs/helpers/libsmb/clientgen.c         sslutil_disconnect (cli->fd);
cli              2607 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->fd != -1)
cli              2608 src/vfs/smbfs/helpers/libsmb/clientgen.c         close (cli->fd);
cli              2609 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli, 0, sizeof (*cli));
cli              2622 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_error (struct cli_state *cli, uint8 * eclass, uint32 * num, uint32 * nt_rpc_error)
cli              2624 src/vfs/smbfs/helpers/libsmb/clientgen.c     int flgs2 = SVAL (cli->inbuf, smb_flg2);
cli              2633 src/vfs/smbfs/helpers/libsmb/clientgen.c         *nt_rpc_error = cli->nt_error;
cli              2638 src/vfs/smbfs/helpers/libsmb/clientgen.c         uint32 nt_err = IVAL (cli->inbuf, smb_rcls);
cli              2673 src/vfs/smbfs/helpers/libsmb/clientgen.c     rcls = CVAL (cli->inbuf, smb_rcls);
cli              2674 src/vfs/smbfs/helpers/libsmb/clientgen.c     code = SVAL (cli->inbuf, smb_err);
cli              2728 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_sockopt (struct cli_state *cli, char *options)
cli              2730 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_socket_options (cli->fd, options);
cli              2737 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_setpid (struct cli_state *cli, uint16 pid)
cli              2739 src/vfs/smbfs/helpers/libsmb/clientgen.c     uint16 ret = cli->pid;
cli              2740 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->pid = pid;
cli              2749 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_reestablish_connection (struct cli_state * cli)
cli              2757 src/vfs/smbfs/helpers/libsmb/clientgen.c     int oldfd = cli->fd;
cli              2759 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli->initialised || cli->fd == -1)
cli              2767 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->cnum != 0)
cli              2769 src/vfs/smbfs/helpers/libsmb/clientgen.c         fstrcpy (share, cli->share);
cli              2770 src/vfs/smbfs/helpers/libsmb/clientgen.c         fstrcpy (dev, cli->dev);
cli              2774 src/vfs/smbfs/helpers/libsmb/clientgen.c     memcpy (&called, &(cli->called), sizeof (called));
cli              2775 src/vfs/smbfs/helpers/libsmb/clientgen.c     memcpy (&calling, &(cli->calling), sizeof (calling));
cli              2776 src/vfs/smbfs/helpers/libsmb/clientgen.c     fstrcpy (dest_host, cli->full_dest_host_name);
cli              2780 src/vfs/smbfs/helpers/libsmb/clientgen.c                inet_ntoa (cli->dest_ip), cli->user_name, cli->domain));
cli              2782 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli->fd = -1;
cli              2784 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_establish_connection (cli,
cli              2785 src/vfs/smbfs/helpers/libsmb/clientgen.c                                   dest_host, &cli->dest_ip,
cli              2788 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (cli->fd != oldfd)
cli              2790 src/vfs/smbfs/helpers/libsmb/clientgen.c             if (dup2 (cli->fd, oldfd) == oldfd)
cli              2792 src/vfs/smbfs/helpers/libsmb/clientgen.c                 close (cli->fd);
cli              2804 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_establish_connection (struct cli_state * cli,
cli              2811 src/vfs/smbfs/helpers/libsmb/clientgen.c                cli->user_name, cli->domain));
cli              2815 src/vfs/smbfs/helpers/libsmb/clientgen.c     if ((!cli->initialised))
cli              2820 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->fd == -1)
cli              2822 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_connect (cli, dest_host, dest_ip))
cli              2830 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_session_request (cli, calling, called))
cli              2834 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli_shutdown (cli);
cli              2838 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_negprot (cli))
cli              2842 src/vfs/smbfs/helpers/libsmb/clientgen.c             cli_shutdown (cli);
cli              2846 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli->pwd.cleartext || cli->pwd.null_pwd)
cli              2851 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (cli->pwd.null_pwd)
cli              2860 src/vfs/smbfs/helpers/libsmb/clientgen.c             pwd_get_cleartext (&(cli->pwd), passwd);
cli              2865 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_session_setup (cli, cli->user_name, passwd, pass_len, NULL, 0, cli->domain))
cli              2870 src/vfs/smbfs/helpers/libsmb/clientgen.c                 cli_shutdown (cli);
cli              2876 src/vfs/smbfs/helpers/libsmb/clientgen.c             if (!cli_send_tconX (cli, service, service_type, (char *) passwd, strlen (passwd)))
cli              2881 src/vfs/smbfs/helpers/libsmb/clientgen.c                     cli_shutdown (cli);
cli              2894 src/vfs/smbfs/helpers/libsmb/clientgen.c         pwd_make_lm_nt_owf (&(cli->pwd), cli->cryptkey);
cli              2895 src/vfs/smbfs/helpers/libsmb/clientgen.c         pwd_get_lm_nt_owf (&(cli->pwd), lm_sess_pwd, nt_sess_pwd);
cli              2898 src/vfs/smbfs/helpers/libsmb/clientgen.c         if (!cli_session_setup (cli, cli->user_name,
cli              2900 src/vfs/smbfs/helpers/libsmb/clientgen.c                                 (char *) nt_sess_pwd, sizeof (nt_sess_pwd), cli->domain))
cli              2904 src/vfs/smbfs/helpers/libsmb/clientgen.c                 cli_shutdown (cli);
cli              2910 src/vfs/smbfs/helpers/libsmb/clientgen.c             if (!cli_send_tconX (cli, service, service_type,
cli              2915 src/vfs/smbfs/helpers/libsmb/clientgen.c                     cli_shutdown (cli);
cli              2922 src/vfs/smbfs/helpers/libsmb/clientgen.c         cli_shutdown (cli);
cli              2932 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_chkpath (struct cli_state * cli, char *path)
cli              2942 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              2943 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, 4 + strlen (path2), True);
cli              2944 src/vfs/smbfs/helpers/libsmb/clientgen.c     SCVAL (cli->outbuf, smb_com, SMBchkpth);
cli              2945 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              2946 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              2947 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              2951 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              2952 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              2957 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_error (cli, NULL, NULL, NULL))
cli              2968 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_message_start (struct cli_state * cli, char *host, char *username, int *grp)
cli              2973 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              2974 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, 0, True);
cli              2975 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBsendstrt;
cli              2976 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              2977 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              2979 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              2987 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, PTR_DIFF (p, smb_buf (cli->outbuf)), False);
cli              2989 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              2991 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              2996 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_error (cli, NULL, NULL, NULL))
cli              2999 src/vfs/smbfs/helpers/libsmb/clientgen.c     *grp = SVAL (cli->inbuf, smb_vwv0);
cli              3009 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_message_text (struct cli_state * cli, char *msg, int len, int grp)
cli              3013 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              3014 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 1, len + 3, True);
cli              3015 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBsendtxt;
cli              3016 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              3017 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              3019 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, grp);
cli              3021 src/vfs/smbfs/helpers/libsmb/clientgen.c     p = smb_buf (cli->outbuf);
cli              3025 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              3027 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              3032 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_error (cli, NULL, NULL, NULL))
cli              3042 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_message_end (struct cli_state * cli, int grp)
cli              3044 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              3045 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 1, 0, True);
cli              3046 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBsendend;
cli              3047 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              3049 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_vwv0, grp);
cli              3051 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              3053 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              3055 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              3060 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (cli_error (cli, NULL, NULL, NULL))
cli              3072 src/vfs/smbfs/helpers/libsmb/clientgen.c cli_dskattr (struct cli_state * cli, int *bsize, int *total, int *avail)
cli              3074 src/vfs/smbfs/helpers/libsmb/clientgen.c     memset (cli->outbuf, '\0', smb_size);
cli              3075 src/vfs/smbfs/helpers/libsmb/clientgen.c     set_message (cli->outbuf, 0, 0, True);
cli              3076 src/vfs/smbfs/helpers/libsmb/clientgen.c     CVAL (cli->outbuf, smb_com) = SMBdskattr;
cli              3077 src/vfs/smbfs/helpers/libsmb/clientgen.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli              3078 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_setup_packet (cli);
cli              3080 src/vfs/smbfs/helpers/libsmb/clientgen.c     cli_send_smb (cli);
cli              3081 src/vfs/smbfs/helpers/libsmb/clientgen.c     if (!cli_receive_smb (cli))
cli              3086 src/vfs/smbfs/helpers/libsmb/clientgen.c     *bsize = SVAL (cli->inbuf, smb_vwv1) * SVAL (cli->inbuf, smb_vwv2);
cli              3087 src/vfs/smbfs/helpers/libsmb/clientgen.c     *total = SVAL (cli->inbuf, smb_vwv0);
cli              3088 src/vfs/smbfs/helpers/libsmb/clientgen.c     *avail = SVAL (cli->inbuf, smb_vwv3);
cli               101 src/vfs/smbfs/smbfs.c     struct cli_state *cli;
cli               147 src/vfs/smbfs/smbfs.c     struct cli_state *cli;
cli               444 src/vfs/smbfs/smbfs.c         if (smbfs_connections[i].cli)
cli               467 src/vfs/smbfs/smbfs.c     n = cli_read (info->cli, info->fnum, buffer, info->nread, count);
cli               483 src/vfs/smbfs/smbfs.c     n = cli_write (info->cli, info->fnum, 0, buf, info->nread, nbyte);
cli               500 src/vfs/smbfs/smbfs.c     if (info->cli->outbuf == NULL)
cli               509 src/vfs/smbfs/smbfs.c         cli_setatr (info->cli, rname, info->attr & ~(uint16) aARCH, 0);
cli               512 src/vfs/smbfs/smbfs.c     return (cli_close (info->cli, info->fnum) == True) ? 0 : -1;
cli               689 src/vfs/smbfs/smbfs.c         host = g_strdup (conn->cli->desthost);  /* server browsing */
cli               693 src/vfs/smbfs/smbfs.c     cli_shutdown (conn->cli);
cli               695 src/vfs/smbfs/smbfs.c     if (!(conn->cli = smbfs_do_connect (host, conn->service)))
cli               710 src/vfs/smbfs/smbfs.c smbfs_send (struct cli_state *cli)
cli               716 src/vfs/smbfs/smbfs.c     len = smb_len (cli->outbuf) + 4;
cli               720 src/vfs/smbfs/smbfs.c         ret = write_socket (cli->fd, cli->outbuf + nwritten, len - nwritten);
cli               740 src/vfs/smbfs/smbfs.c smbfs_chkpath (struct cli_state *cli, const char *path, BOOL send_only)
cli               751 src/vfs/smbfs/smbfs.c     memset (cli->outbuf, '\0', smb_size);
cli               752 src/vfs/smbfs/smbfs.c     set_message (cli->outbuf, 0, 4 + strlen (path2), True);
cli               753 src/vfs/smbfs/smbfs.c     SCVAL (cli->outbuf, smb_com, SMBchkpth);
cli               754 src/vfs/smbfs/smbfs.c     SSVAL (cli->outbuf, smb_tid, cli->cnum);
cli               756 src/vfs/smbfs/smbfs.c     cli->rap_error = 0;
cli               757 src/vfs/smbfs/smbfs.c     cli->nt_error = 0;
cli               758 src/vfs/smbfs/smbfs.c     SSVAL (cli->outbuf, smb_pid, cli->pid);
cli               759 src/vfs/smbfs/smbfs.c     SSVAL (cli->outbuf, smb_uid, cli->vuid);
cli               760 src/vfs/smbfs/smbfs.c     SSVAL (cli->outbuf, smb_mid, cli->mid);
cli               761 src/vfs/smbfs/smbfs.c     if (cli->protocol > PROTOCOL_CORE)
cli               763 src/vfs/smbfs/smbfs.c         SCVAL (cli->outbuf, smb_flg, 0x8);
cli               764 src/vfs/smbfs/smbfs.c         SSVAL (cli->outbuf, smb_flg2, 0x1);
cli               767 src/vfs/smbfs/smbfs.c     p = smb_buf (cli->outbuf);
cli               771 src/vfs/smbfs/smbfs.c     if (!smbfs_send (cli))
cli               778 src/vfs/smbfs/smbfs.c         client_receive_smb (cli->fd, cli->inbuf, cli->timeout);
cli               782 src/vfs/smbfs/smbfs.c     if (!client_receive_smb (cli->fd, cli->inbuf, cli->timeout))
cli               787 src/vfs/smbfs/smbfs.c     if ((my_errno = cli_error (cli, NULL, NULL, NULL)))
cli               851 src/vfs/smbfs/smbfs.c                 (smbfs_info->conn->cli, smbfs_info->conn->domain,
cli               861 src/vfs/smbfs/smbfs.c             if (cli_RNetShareEnum (smbfs_info->conn->cli, smbfs_browsing_helper, NULL) < 1)
cli               881 src/vfs/smbfs/smbfs.c     DEBUG (6, ("smbfs_loaddir: cli->share: %s\n", smbfs_info->conn->cli->share));
cli               884 src/vfs/smbfs/smbfs.c     if (cli_list (smbfs_info->conn->cli, my_dirname, attribute, smbfs_loaddir_helper, NULL) < 0)
cli               887 src/vfs/smbfs/smbfs.c         my_errno = cli_error (smbfs_info->conn->cli, NULL, &err, NULL);
cli              1203 src/vfs/smbfs/smbfs.c         if (!smbfs_connections[i].cli)
cli              1217 src/vfs/smbfs/smbfs.c         cli_shutdown (smbfs_connections[oldest].cli);
cli              1265 src/vfs/smbfs/smbfs.c         if (!smbfs_connections[i].cli)
cli              1274 src/vfs/smbfs/smbfs.c             while (!smbfs_chkpath (smbfs_connections[i].cli, "\\", !inshare))
cli              1286 src/vfs/smbfs/smbfs.c             dest_ip = &smbfs_connections[i].cli->dest_ip;
cli              1320 src/vfs/smbfs/smbfs.c     while (!(bucket->cli = smbfs_do_connect (host, service)))
cli              1557 src/vfs/smbfs/smbfs.c     if (cli_list (sc->cli, mypath, attribute, smbfs_loaddir_helper, single_entry) < 1)
cli              1862 src/vfs/smbfs/smbfs.c         if (!cli_qfileinfo (info->cli, info->fnum,
cli              1865 src/vfs/smbfs/smbfs.c             !cli_getattrE (info->cli, info->fnum, NULL, &size, NULL, NULL, NULL))
cli              1911 src/vfs/smbfs/smbfs.c     if (!cli_mkdir (sc->cli, cpath))
cli              1913 src/vfs/smbfs/smbfs.c         my_errno = cli_error (sc->cli, NULL, &err, NULL);
cli              1915 src/vfs/smbfs/smbfs.c                  cli_errstr (sc->cli), CNV_LANG (cpath));
cli              1940 src/vfs/smbfs/smbfs.c     if (!cli_rmdir (sc->cli, cpath))
cli              1942 src/vfs/smbfs/smbfs.c         my_errno = cli_error (sc->cli, NULL, &err, NULL);
cli              1944 src/vfs/smbfs/smbfs.c                  cli_errstr (sc->cli), CNV_LANG (cpath));
cli              2007 src/vfs/smbfs/smbfs.c             if (smbfs_connections[i].cli
cli              2014 src/vfs/smbfs/smbfs.c                 cli_shutdown (smbfs_connections[i].cli);
cli              2017 src/vfs/smbfs/smbfs.c                 smbfs_connections[i].cli = smbfs_do_connect (p->host, smbfs_connections[i].service);
cli              2064 src/vfs/smbfs/smbfs.c         cli_open (remote_handle->cli, rname, flags, DENY_NONE);
cli              2066 src/vfs/smbfs/smbfs.c         cli_open (remote_handle->cli, rname, ((flags & O_CREAT)
cli              2074 src/vfs/smbfs/smbfs.c                  cli_errstr (remote_handle->cli), CNV_LANG (rname));
cli              2075 src/vfs/smbfs/smbfs.c         DEBUG (1, ("smbfs_open(rname:%s) error:%s\n", rname, cli_errstr (remote_handle->cli)));
cli              2076 src/vfs/smbfs/smbfs.c         my_errno = cli_error (remote_handle->cli, NULL, &err, NULL);
cli              2083 src/vfs/smbfs/smbfs.c     if (!cli_qfileinfo (remote_handle->cli, remote_handle->fnum,
cli              2086 src/vfs/smbfs/smbfs.c         && !cli_getattrE (remote_handle->cli, remote_handle->fnum,
cli              2089 src/vfs/smbfs/smbfs.c         message (D_ERROR, MSG_ERROR, "getattrib: %s", cli_errstr (remote_handle->cli));
cli              2090 src/vfs/smbfs/smbfs.c         DEBUG (1, ("smbfs_open(rname:%s) getattrib:%s\n", rname, cli_errstr (remote_handle->cli)));
cli              2091 src/vfs/smbfs/smbfs.c         my_errno = cli_error (remote_handle->cli, NULL, &err, NULL);
cli              2092 src/vfs/smbfs/smbfs.c         cli_close (remote_handle->cli, remote_handle->fnum);
cli              2099 src/vfs/smbfs/smbfs.c         cli_close (remote_handle->cli, remote_handle->fnum);
cli              2126 src/vfs/smbfs/smbfs.c     remote_handle->cli = sc->cli;
cli              2151 src/vfs/smbfs/smbfs.c     if (!cli_unlink (sc->cli, remote_file))
cli              2154 src/vfs/smbfs/smbfs.c                  cli_errstr (sc->cli), CNV_LANG (remote_file));
cli              2183 src/vfs/smbfs/smbfs.c     retval = cli_rename (sc->cli, ra, rb);
cli              2190 src/vfs/smbfs/smbfs.c         message (D_ERROR, MSG_ERROR, _("%s renaming files\n"), cli_errstr (sc->cli));