Lines Matching refs:cli_info
99 void run_enums_test(int num_ops, struct client_info *cli_info, struct cli_state *cli)
105 rpcclient_connect(cli_info);
111 cli_info->dest_host, cli_info->name_type);
118 cmd_srv_enum_sess(cli_info);
120 cmd_srv_enum_shares(cli_info);
122 cmd_srv_enum_files(cli_info);
133 cmd_srv_enum_conn(cli_info);
143 void run_ntlogin_test(int num_ops, struct client_info *cli_info, struct cli_state *cli)
149 rpcclient_connect(cli_info);
155 cli_info->dest_host, cli_info->name_type);
164 cmd_netlogon_login_test(cli_info);
175 struct client_info *cli_info, struct cli_state *cli,
186 fn(numops, cli_info, cli);
244 struct client_info cli_info;
265 cli_info.put_total_size = 0;
266 cli_info.put_total_time_ms = 0;
267 cli_info.get_total_size = 0;
268 cli_info.get_total_time_ms = 0;
270 cli_info.dir_total = 0;
271 cli_info.newer_than = 0;
272 cli_info.archive_level = 0;
273 cli_info.print_mode = 1;
275 cli_info.translation = False;
276 cli_info.recurse_dir = False;
277 cli_info.lowercase = False;
278 cli_info.prompt = True;
279 cli_info.abort_mget = True;
281 cli_info.dest_ip.s_addr = 0;
282 cli_info.name_type = 0x20;
284 pstrcpy(cli_info.cur_dir , "\\");
285 pstrcpy(cli_info.file_sel, "");
286 pstrcpy(cli_info.base_dir, "");
289 pstrcpy(cli_info.myhostname, "");
290 pstrcpy(cli_info.dest_host, "");
292 pstrcpy(cli_info.svc_type, "A:");
293 pstrcpy(cli_info.share, "");
294 pstrcpy(cli_info.service, "");
296 ZERO_STRUCT(cli_info.dom.level3_sid);
297 pstrcpy(cli_info.dom.level3_dom, "");
298 ZERO_STRUCT(cli_info.dom.level5_sid);
299 pstrcpy(cli_info.dom.level5_dom, "");
326 pstrcpy(cli_info.service, argv[1]);
328 string_replace( cli_info.service, '/','\\');
332 DEBUG(1,("service: %s\n", cli_info.service));
334 if (count_chars(cli_info.service,'\\') < 3)
337 printf("\n%s: Not enough '\\' characters in service\n", cli_info.service);
342 if (count_chars(cli_info.service,'\\') > 3)
345 printf("\n%s: Too many '\\' characters in service\n", cli_info.service);
384 pstrcpy(cli_info.dest_host,optarg);
385 strupper(cli_info.dest_host);
425 cli_info.dest_ip = *interpret_addr2(optarg);
426 if (zero_ip(cli_info.dest_ip))
509 fstrcpy(cli_info.myhostname, global_myname);
523 pstrcpy(cli_info.share, "IPC$");
524 pstrcpy(cli_info.svc_type, "IPC");
527 fstrcpy(cli_info.mach_acct, cli_info.myhostname);
528 strupper(cli_info.mach_acct);
529 fstrcat(cli_info.mach_acct, "$");
550 create_procs(nprocs, numops, &cli_info, smb_cli, run_enums_test);
554 create_procs(nprocs, numops, &cli_info, smb_cli, run_ntlogin_test);