関数 | |
void | cmd_wks_query_info (struct client_info *info) |
変数 | |
cli_state * | smb_cli |
FILE * | out_hnd |
void cmd_wks_query_info | ( | struct client_info * | info | ) |
cmd_wkssvc.c の 36 行で定義されています。
参照先 cli_state::fd・next_token_nr()・out_hnd・smb_cli・strupper_m().
00037 { 00038 fstring dest_wks; 00039 fstring tmp; 00040 WKS_INFO_100 ctr; 00041 uint32 info_level = 100; 00042 00043 BOOL res = True; 00044 00045 memset((char *)&ctr, '\0', sizeof(ctr)); 00046 00047 fstrcpy(dest_wks, "\\\\"); 00048 fstrcat(dest_wks, info->dest_host); 00049 strupper_m(dest_wks); 00050 00051 if (next_token_nr(NULL, tmp, NULL, sizeof(tmp))) 00052 { 00053 info_level = (uint32)strtol(tmp, (char**)NULL, 10); 00054 } 00055 00056 DEBUG(4,("cmd_wks_query_info: server:%s info level: %d\n", 00057 dest_wks, info_level)); 00058 00059 DEBUG(5, ("cmd_wks_query_info: smb_cli->fd:%d\n", smb_cli->fd)); 00060 00061 /* open LSARPC session. */ 00062 res = res ? cli_nt_session_open(smb_cli, PI_WKSSVC) : False; 00063 00064 /* send info level: receive requested info. hopefully. */ 00065 res = res ? do_wks_query_info(smb_cli, 00066 dest_wks, info_level, &ctr) : False; 00067 00068 /* close the session */ 00069 cli_nt_session_close(smb_cli); 00070 00071 if (res) 00072 { 00073 DEBUG(5,("cmd_wks_query_info: query succeeded\n")); 00074 00075 #if 0 00076 display_wks_info_100(out_hnd, ACTION_HEADER , &ctr); 00077 display_wks_info_100(out_hnd, ACTION_ENUMERATE, &ctr); 00078 display_wks_info_100(out_hnd, ACTION_FOOTER , &ctr); 00079 #endif 00080 00081 } 00082 else 00083 { 00084 DEBUG(5,("cmd_wks_query_info: query failed\n")); 00085 } 00086 }
rpctorture.c の 38 行で定義されています。
参照元 cmd_wks_query_info()・main()・rpcclient_connect()・rpcclient_init()・rpcclient_stop().
FILE* out_hnd |
rpctorture.c の 40 行で定義されています。
参照元 cmd_wks_query_info()・create_procs()・main()・run_enums_test()・run_ntlogin_test()・usage().