source: branches/monitor-improvement/module-monitor.c@ 1191

Last change on this file since 1191 was 1191, checked in by alno, 12 years ago

WebIf:

  • try to fix the dbox-mon incompatibility with hideclient_to
File size: 18.3 KB
Line 
1#include "globals.h"
2#ifdef CS_WITH_GBOX
3# include "csgbox/gbox.h"
4# define CS_VERSION_X CS_VERSION "-gbx-" GBXVERSION
5#else
6# define CS_VERSION_X CS_VERSION
7#endif
8
9static int auth=0;
10
11static void monitor_check_ip()
12{
13 int ok=0;
14 struct s_ip *p_ip;
15
16 if (auth) return;
17 for (p_ip=cfg->mon_allowed; (p_ip) && (!ok); p_ip=p_ip->next)
18 ok=((client[cs_idx].ip>=p_ip->ip[0]) && (client[cs_idx].ip<=p_ip->ip[1]));
19 if (!ok)
20 {
21 cs_auth_client((struct s_auth *)0, "invalid ip");
22 cs_exit(0);
23 }
24}
25
26static void monitor_auth_client(char *usr, char *pwd)
27{
28 struct s_auth *account;
29
30 if (auth) return;
31 if ((!usr) || (!pwd))
32 {
33 cs_auth_client((struct s_auth *)0, NULL);
34 cs_exit(0);
35 }
36 for (account=cfg->account, auth=0; (account) && (!auth);)
37 {
38 if (account->monlvl)
39 auth=!(strcmp(usr, account->usr) | strcmp(pwd, account->pwd));
40 if (!auth)
41 account=account->next;
42 }
43 if (!auth)
44 {
45 cs_auth_client((struct s_auth *)0, "invalid account");
46 cs_exit(0);
47 }
48 if (cs_auth_client(account, NULL))
49 cs_exit(0);
50}
51
52static int secmon_auth_client(uchar *ucrc)
53{
54 ulong crc;
55 struct s_auth *account;
56
57 if (auth)
58 {
59 int s=memcmp(client[cs_idx].ucrc, ucrc, 4);
60 if (s)
61 cs_log("wrong user-crc or garbage !?");
62 return(!s);
63 }
64 client[cs_idx].crypted=1;
65 crc=(ucrc[0]<<24) | (ucrc[1]<<16) | (ucrc[2]<<8) | ucrc[3];
66 for (account=cfg->account; (account) && (!auth); account=account->next)
67 if ((account->monlvl) &&
68 (crc==crc32(0L, MD5((unsigned char *)account->usr, strlen(account->usr), NULL), 16)))
69 {
70 memcpy(client[cs_idx].ucrc, ucrc, 4);
71 aes_set_key((char *)MD5((unsigned char *)account->pwd, strlen(account->pwd), NULL));
72 if (cs_auth_client(account, NULL))
73 cs_exit(0);
74 auth=1;
75 }
76 if (!auth)
77 {
78 cs_auth_client((struct s_auth *)0, "invalid user");
79 cs_exit(0);
80 }
81 return(auth);
82}
83
84int monitor_send_idx(int idx, char *txt)
85{
86 int l;
87 unsigned char buf[256+32];
88 if (!client[idx].udp_fd)
89 return(-1);
90 usleep(500L); // avoid lost udp-pakets ..
91 if (!client[idx].crypted)
92 return(sendto(client[idx].udp_fd, txt, strlen(txt), 0,
93 (struct sockaddr *)&client[idx].udp_sa,
94 sizeof(client[idx].udp_sa)));
95 buf[0]='&';
96 buf[9]=l=strlen(txt);
97 l=boundary(4, l+5)+5;
98 memcpy(buf+1, client[idx].ucrc, 4);
99 strcpy((char *)buf+10, txt);
100 memcpy(buf+5, i2b(4, crc32(0L, buf+10, l-10)), 4);
101 aes_encrypt_idx(idx, buf+5, l-5);
102 return(sendto(client[idx].udp_fd, buf, l, 0,
103 (struct sockaddr *)&client[idx].udp_sa,
104 sizeof(client[idx].udp_sa)));
105}
106
107#define monitor_send(t) monitor_send_idx(cs_idx, t)
108
109static int monitor_recv(uchar *buf, int l)
110{
111 int n;
112 uchar nbuf[3] = { 'U', 0, 0 };
113 static int bpos=0;
114 static uchar *bbuf=NULL;
115 if (!bbuf)
116 {
117 bbuf=(uchar *)malloc(l);
118 if (!bbuf)
119 {
120 cs_log("Cannot allocate memory (errno=%d)", errno);
121 cs_exit(1);
122 }
123 }
124 if (bpos)
125 memcpy(buf, bbuf, n=bpos);
126 else
127 n=recv_from_udpipe(buf);
128 bpos=0;
129 if (!n) return(buf[0]=0);
130 if (buf[0]=='&')
131 {
132 int bsize;
133 if (n<21) // 5+16 is minimum
134 {
135 cs_log("packet to short !");
136 return(buf[0]=0);
137 }
138 if (!secmon_auth_client(buf+1))
139 return(buf[0]=0);
140 aes_decrypt(buf+5, 16);
141 bsize=boundary(4, buf[9]+5)+5;
142// cs_log("n=%d bsize=%d", n, bsize);
143 if (n>bsize)
144 {
145// cs_log("DO >>>> copy-back");
146 memcpy(bbuf, buf+bsize, bpos=n-bsize);
147 n=bsize;
148 if (!write(client[cs_idx].ufd, nbuf, sizeof(nbuf))) cs_exit(1); // trigger new event
149 }
150 else if (n<bsize)
151 {
152 cs_log("packet-size mismatch !");
153 return(buf[0]=0);
154 }
155 aes_decrypt(buf+21, n-21);
156 if (memcmp(buf+5, i2b(4, crc32(0L, buf+10, n-10)), 4))
157 {
158 cs_log("CRC error ! wrong password ?");
159 return(buf[0]=0);
160 }
161 n=buf[9];
162 memmove(buf, buf+10, n);
163 }
164 else
165 {
166 uchar *p;
167 monitor_check_ip();
168 buf[n]='\0';
169 if ((p=(uchar *)strchr((char *)buf, 10)) && (bpos=n-(p-buf)-1))
170 {
171 memcpy(bbuf, p+1, bpos);
172 n=p-buf;
173 if (!write(client[cs_idx].ufd, nbuf, sizeof(nbuf))) cs_exit(1); // trigger new event
174 }
175 }
176 buf[n]='\0';
177 n=strlen(trim((char *)buf));
178 if (n) client[cs_idx].last=time((time_t *) 0);
179 return(n);
180}
181
182static void monitor_send_info(char *txt, int last)
183{
184 static int seq=0, counter=0;
185 static char btxt[256] = {0};
186 char buf[8];
187 if (txt)
188 {
189 if (!btxt[0])
190 {
191 counter=0;
192 txt[2]='B';
193 }
194 else
195 counter++;
196 sprintf(buf, "%03d", counter);
197 memcpy(txt+4, buf, 3);
198 txt[3]='0'+seq;
199 }
200 else
201 if (!last)
202 return;
203
204 if (!last)
205 {
206 if (btxt[0]) monitor_send(btxt);
207 strncpy(btxt, txt, sizeof(btxt));
208 return;
209 }
210
211 if (txt && btxt[0])
212 {
213 monitor_send(btxt);
214 txt[2]='E';
215 strncpy(btxt, txt, sizeof(btxt));
216 }
217 else
218 {
219 if (txt)
220 strncpy(btxt, txt, sizeof(btxt));
221 btxt[2]=(btxt[2]=='B') ? 'S' : 'E';
222 }
223
224 if (btxt[0])
225 {
226 monitor_send(btxt);
227 seq=(seq+1)%10;
228 }
229 btxt[0]=0;
230}
231
232int cs_idx2ridx(int idx)
233{
234 int i;
235 for (i=0; i<CS_MAXREADER; i++)
236 if (reader[i].cs_idx==idx)
237 return(i);
238 return(-1);
239}
240
241char *monitor_get_srvname(int id)
242{
243 struct s_srvid *this=cfg->srvid;
244 static char name[83];
245 for (name[0]=0; this && (!name[0]); this=this->next)
246 if (this->srvid==id)
247 strncpy(name, this->name, 32);
248 if (!name[0]) sprintf(name, "[%04X]", id);
249 if (!id) name[0]='\0';
250 return(name);
251}
252
253char *monitor_get_proto(int idx)
254{
255 int i;
256 char *ctyp;
257 switch(client[idx].typ)
258 {
259 case 's': ctyp="server" ; break;
260 case 'n': ctyp="resolver" ; break;
261 case 'l': ctyp="logger" ; break;
262 case 'p':
263 case 'r': if ((i=cs_idx2ridx(idx))<0) // should never happen
264 ctyp=(client[idx].typ=='p') ? "proxy" : "reader";
265 else
266 {
267 switch(reader[i].typ) // TODO like ph
268 {
269 case R_MOUSE : ctyp="mouse"; break;
270 case R_INTERNAL: ctyp="intern"; break;
271 case R_SMART : ctyp="smartreader"; break;
272 case R_CAMD35 : ctyp="camd 3.5x";break;
273 case R_CAMD33 : ctyp="camd 3.3x";break;
274 case R_NEWCAMD : ctyp="newcamd"; break;
275 case R_RADEGAST: ctyp="radegast"; break;
276 case R_SERIAL : ctyp="serial"; break;
277 case R_GBOX : ctyp="gbox"; break;
278#ifdef HAVE_PCSC
279 case R_PCSC : ctyp="pcsc"; break;
280#endif
281 case R_CCCAM : ctyp="cccam"; break;
282 case R_CS378X : ctyp="cs378x"; break;
283 default : ctyp="unknown"; break;
284 }
285 }
286 break;
287 default : ctyp=ph[client[idx].ctyp].desc;
288 }
289 return(ctyp);
290}
291
292static char *monitor_client_info(char id, int i)
293{
294 static char sbuf[256];
295
296 sbuf[0]='\0';
297 if (client[i].pid)
298 {
299 char ldate[16], ltime[16], *usr;
300 int lsec, isec, cnr, con, cau;
301 time_t now;
302 struct tm *lt;
303 now=time((time_t)0);
304
305 if ((cfg->mon_hideclient_to <= 0) ||
306 (((now-client[i].lastecm))<cfg->mon_hideclient_to) ||
307 (((now-client[i].lastemm))<cfg->mon_hideclient_to) ||
308 (client[i].typ!='c'))
309 {
310 lsec=now-client[i].login;
311 isec=now-client[i].last;
312 usr=client[i].usr;
313 if (((client[i].typ=='r') || (client[i].typ=='p')) &&
314 (con=cs_idx2ridx(i))>=0)
315 usr=reader[con].label;
316 if (client[i].dup)
317 con=2;
318 else
319 if ((client[i].tosleep) &&
320 (now-client[i].lastswitch>client[i].tosleep))
321 con=1;
322 else
323 con=0;
324 if (i-cdiff>0)
325 cnr=i-cdiff;
326 else
327 cnr=(i>1) ? i-1 : 0;
328 if( (cau=client[i].au+1) )
329 if ((now-client[i].lastemm)/60>cfg->mon_aulow)
330 cau=-cau;
331 lt=localtime(&client[i].login);
332 sprintf(ldate, "%2d.%02d.%02d",
333 lt->tm_mday, lt->tm_mon+1, lt->tm_year % 100);
334 sprintf(ltime, "%2d:%02d:%02d",
335 lt->tm_hour, lt->tm_min, lt->tm_sec);
336 sprintf(sbuf, "[%c--CCC]%d|%c|%d|%s|%d|%d|%s|%d|%s|%s|%s|%d|%04X:%04X|%s|%d|%d\n",
337 id, client[i].pid, client[i].typ, cnr, usr, cau, client[i].crypted,
338 cs_inet_ntoa(client[i].ip), client[i].port, monitor_get_proto(i),
339 ldate, ltime, lsec, client[i].last_caid, client[i].last_srvid,
340 monitor_get_srvname(client[i].last_srvid), isec, con);
341 }
342 }
343 return(sbuf);
344}
345
346static void monitor_process_info()
347{
348 int i;
349 time_t now;
350
351 now=time((time_t)0);
352 for (i=0; i<CS_MAXPID; i++){
353 if ((cfg->mon_hideclient_to <= 0) || (((now-client[i].lastecm)/60)<cfg->mon_hideclient_to) || (((now-client[i].lastemm)/60)<cfg->mon_hideclient_to) || (client[i].typ!='c'))
354 if (client[i].pid) {
355 if ((client[cs_idx].monlvl<2) && (client[i].typ!='s')) {
356 if ((strcmp(client[cs_idx].usr, client[i].usr)) || ((client[i].typ!='c') && (client[i].typ!='m')))
357 continue;
358 }
359 monitor_send_info(monitor_client_info('I', i), 0);
360 }
361 }
362 monitor_send_info(NULL, 1);
363}
364
365static void monitor_send_details(char *txt, int pid)
366{
367 char buf[256];
368 snprintf(buf, 255, "[D-----]%d|%s\n", pid, txt);
369 monitor_send_info(buf, 0);
370}
371
372static void monitor_send_details_version()
373{
374 char buf[256];
375 sprintf(buf, "[V-0000]version=%s, build=%s, system=%s%s\n", CS_VERSION_X, CS_SVN_VERSION, cs_platform(buf+100), buf+200);
376 monitor_send_info(buf, 1);
377}
378
379static void monitor_process_details_master(char *buf, int pid)
380{
381 if (cfg->nice!=99)
382 sprintf(buf+200, ", nice=%d", cfg->nice);
383 else
384 buf[200]='\0';
385 sprintf(buf, "version=%s#%s, system=%s%s", CS_VERSION_X, CS_SVN_VERSION, cs_platform(buf+100), buf+200);
386 monitor_send_details(buf, pid);
387
388 sprintf(buf, "max. clients=%d, client max. idle=%ld sec", CS_MAXPID-2, cfg->cmaxidle);
389 monitor_send_details(buf, pid);
390
391 if( cfg->max_log_size )
392 sprintf(buf+200, "%d Kb", cfg->max_log_size);
393 else
394 strcpy(buf+200, "unlimited");
395 sprintf(buf, "max. logsize=%s", buf+200);
396 monitor_send_details(buf, pid);
397
398 sprintf(buf, "client timeout=%lu ms, cache delay=%ld ms", cfg->ctimeout, cfg->delay);
399 monitor_send_details(buf, pid);
400
401//#ifdef CS_NOSHM
402// sprintf(buf, "shared memory initialized (size=%d, fd=%d)", shmsize, shmid);
403//#else
404// sprintf(buf, "shared memory initialized (size=%d, id=%d)", shmsize, shmid);
405//#endif
406// monitor_send_details(buf, pid);
407}
408
409#ifdef CS_RDR_INIT_HIST
410static void monitor_process_details_reader(int pid, int idx)
411{
412 int r_idx;
413 char *p;
414 if ((r_idx=cs_idx2ridx(idx))>=0)
415 for (p=(char *)reader[r_idx].init_history; *p; p+=strlen(p)+1)
416 monitor_send_details(p, pid);
417 else
418 monitor_send_details("Missing reader index !", pid);
419}
420#endif
421
422static void monitor_process_details(char *arg)
423{
424 int pid, idx;
425 char sbuf[256];
426 if (!arg) return;
427 if ((idx=idx_from_pid(pid=atoi(arg)))<0)
428 monitor_send_details("Invalid PID", pid);
429 else
430 {
431 monitor_send_info(monitor_client_info('D', idx), 0);
432 switch(client[idx].typ)
433 {
434 case 's':
435 monitor_process_details_master(sbuf, pid);
436 break;
437 case 'c': case 'm':
438 break;
439 case 'r':
440#ifdef CS_RDR_INIT_HIST
441 monitor_process_details_reader(pid, idx);
442#endif
443 break;
444 case 'p':
445 break;
446 }
447 }
448 monitor_send_info(NULL, 1);
449}
450
451static void monitor_send_login(void)
452{
453 char buf[64];
454 if (auth)
455 sprintf(buf, "[A-0000]1|%s logged in\n", client[cs_idx].usr);
456 else
457 strcpy(buf, "[A-0000]0|not logged in\n");
458 monitor_send_info(buf, 1);
459}
460
461static void monitor_login(char *usr)
462{
463 char *pwd=NULL;
464 if ((usr) && (pwd=strchr(usr, ' ')))
465 *pwd++=0;
466 if (pwd)
467 monitor_auth_client(trim(usr), trim(pwd));
468 else
469 monitor_auth_client(NULL, NULL);
470 monitor_send_login();
471}
472
473static void monitor_logsend(char *flag)
474{
475#ifdef CS_LOGHISTORY
476 int i;
477#endif
478 if (strcmp(flag, "on")) {
479 if (strcmp(flag, "onwohist")) {
480 client[cs_idx].log=0;
481 return;
482 }
483 }
484
485 if (client[cs_idx].log) // already on
486 return;
487#ifdef CS_LOGHISTORY
488 if (!strcmp(flag, "on")){
489 for (i=(*loghistidx+3) % CS_MAXLOGHIST; i!=*loghistidx; i=(i+1) % CS_MAXLOGHIST)
490 {
491 char *p_usr, *p_txt;
492 p_usr=(char *)(loghist+(i*CS_LOGHISTSIZE));
493 p_txt=p_usr+32;
494 if ((p_txt[0]) &&
495 ((client[cs_idx].monlvl>1) || (!strcmp(p_usr, client[cs_idx].usr))))
496 {
497 char sbuf[8];
498 sprintf(sbuf, "%03d", client[cs_idx].logcounter);
499 client[cs_idx].logcounter=(client[cs_idx].logcounter+1) % 1000;
500 memcpy(p_txt+4, sbuf, 3);
501 monitor_send(p_txt);
502 }
503 }
504 }
505#endif
506 client[cs_idx].log=1;
507}
508static void monitor_set_debuglevel(char *flag)
509{
510 cs_dblevel^=atoi(flag);
511 kill(client[0].pid, SIGUSR1);
512}
513
514static void monitor_set_account(char *args)
515{
516 struct s_auth *account;
517 char delimiter[] = " =";
518 char *ptr;
519 int argidx, i, found;
520 char *argarray[3];
521 char *token[]={"au", "sleep", "uniq", "monlevel", "group", "services", "betatunnel", "ident", "caid", "chid", "class", "hostname"};
522 char buf[256];
523
524 argidx=0;
525 found=0;
526
527 ptr = strtok(args, delimiter);
528
529 // resolve arguments
530 while(ptr != NULL) {
531 argarray[argidx]=trim(ptr);
532 ptr = strtok(NULL, delimiter);
533 argidx++;
534 }
535
536 if(argidx != 3) {
537 sprintf(buf, "[S-0000]setuser failed - wrong number of parameters (%d)\n", argidx);
538 monitor_send_info(buf, 1);
539 return;
540 }
541
542 //search account
543 for (account=cfg->account; (account) ; account=account->next){
544 if (!strcmp(argarray[0], account->usr)){
545 found=1;
546 break;
547 }
548 }
549
550 if (found != 1){
551 sprintf(buf, "[S-0000]setuser failed - user %s not found\n", argarray[0]);
552 monitor_send_info(buf, 1);
553 return;
554 }
555
556 found=0;
557 for (i=0; i<12; i++){
558 if (!strcmp(argarray[1], token[i])){
559 chk_account(token[i],argarray[2],account);
560 found = 1;
561 }
562 }
563
564 if (found != 1){
565 sprintf(buf, "[S-0000]setuser failed - parameter %s not exist", argarray[1]);
566 monitor_send_info(buf, 1);
567 return;
568 }
569
570 cs_reinit_clients();
571
572 sprintf(buf, "[S-0000]setuser %s done - param %s set to %s\n", argarray[0], argarray[1], argarray[2]);
573 monitor_send_info(buf, 1);
574}
575
576static void monitor_set_server(char *args)
577{
578 char delimiter[] = "=";
579 char *ptr;
580 int argidx, i, found;
581 char *argarray[3];
582 char *token[]={"clienttimeout", "fallbacktimeout", "clientmaxidle", "cachedelay", "bindwait", "netprio", "resolvedelay", "sleep", "unlockparental", "serialreadertimeout", "maxlogsize", "showecmdw", "waitforcards", "preferlocalcards"};
583 char buf[256];
584
585 argidx=0; found=0;
586 ptr = strtok(args, delimiter);
587
588 // resolve arguments
589 while(ptr != NULL) {
590 argarray[argidx]=trim(ptr);
591 ptr = strtok(NULL, delimiter);
592 argidx++;
593 }
594
595 if(argidx != 2) {
596 sprintf(buf, "[S-0000]setserver failed - wrong number of parameters (%d)\n", argidx);
597 monitor_send_info(buf, 1);
598 return;
599 }
600
601 trim(argarray[0]);
602 trim(argarray[1]);
603 strtolower(argarray[0]);
604
605 found = 0;
606 for (i = 0; i < 14; i++)
607 if (!strcmp(argarray[0], token[i])) found = 1;
608
609 if (found != 1){
610 chk_t_global(token[i],argarray[1]);
611 sprintf(buf, "[S-0000]setserver done - param %s set to %s\n", argarray[0], argarray[1]);
612 monitor_send_info(buf, 1);
613 } else {
614 sprintf(buf, "[S-0000]setserver failed - parameter %s not exist", argarray[0]);
615 monitor_send_info(buf, 1);
616 return;
617 }
618
619 if (cfg->ftimeout>=cfg->ctimeout) {
620 cfg->ftimeout = cfg->ctimeout - 100;
621 sprintf(buf, "[S-0000]setserver WARNING: fallbacktimeout adjusted to %lu ms", cfg->ftimeout);
622 monitor_send_info(buf, 1);
623 }
624 if(cfg->ftimeout < cfg->srtimeout) {
625 cfg->ftimeout = cfg->srtimeout + 100;
626 sprintf(buf, "[S-0000]setserver WARNING: fallbacktimeout adjusted to %lu ms", cfg->ftimeout);
627 monitor_send_info(buf, 1);
628 }
629 if(cfg->ctimeout < cfg->srtimeout) {
630 cfg->ctimeout = cfg->srtimeout + 100;
631 sprintf(buf, "[S-0000]setserver WARNING: clienttimeout adjusted to %lu ms", cfg->ctimeout);
632 monitor_send_info(buf, 1);
633 }
634 //kill(client[0].pid, SIGUSR1);
635}
636
637static int monitor_process_request(char *req)
638{
639 int i, rc;
640 char *cmd[]={"login", "exit", "log", "status", "shutdown", "reload", "details", "version", "debug", "setuser", "setserver"};
641 char *arg;
642 if( (arg=strchr(req, ' ')) )
643 {
644 *arg++=0;
645 trim(arg);
646 }
647 trim(req);
648 if ((!auth) && (strcmp(req, cmd[0])))
649 monitor_login(NULL);
650 for (rc=1, i=0; i<11; i++)
651 if (!strcmp(req, cmd[i]))
652 {
653 switch(i)
654 {
655 case 0: monitor_login(arg);
656 break; // login
657 case 1: rc=0;
658 break; // exit
659 case 2: monitor_logsend(arg);
660 break; // log
661 case 3: monitor_process_info();
662 break; // status
663 case 4: if (client[cs_idx].monlvl>3)
664 kill(client[0].pid, SIGQUIT); // shutdown
665 break;
666 case 5: if (client[cs_idx].monlvl>2)
667 kill(client[0].pid, SIGHUP); // reload
668 break;
669 case 6: monitor_process_details(arg);
670 break; // details
671 case 7: monitor_send_details_version();
672 break; // version
673 case 8: if (client[cs_idx].monlvl>3)
674 monitor_set_debuglevel(arg); // debuglevel
675 break;
676 case 9: if (client[cs_idx].monlvl>3)
677 monitor_set_account(arg); // setuser
678 break;
679 case 10: if (client[cs_idx].monlvl>3)
680 monitor_set_server(arg); // setserver
681 break;
682
683 default: continue;
684 }
685 break;
686 }
687 return(rc);
688}
689
690static void monitor_server()
691{
692 int n;
693 client[cs_idx].typ='m';
694 while (((n=process_input(mbuf, sizeof(mbuf), cfg->cmaxidle))>=0) &&
695 monitor_process_request((char *)mbuf));
696 cs_disconnect_client();
697}
698
699void module_monitor(struct s_module *ph)
700{
701 static PTAB ptab;
702 ptab.ports[0].s_port = cfg->mon_port;
703 ph->ptab = &ptab;
704 ph->ptab->nports = 1;
705
706 if (cfg->mon_aulow<1)
707 cfg->mon_aulow=30;
708 strcpy(ph->desc, "monitor");
709 ph->type=MOD_CONN_UDP;
710 ph->multi=0;
711 ph->watchdog=1;
712 ph->s_ip=cfg->mon_srvip;
713 ph->s_handler=monitor_server;
714 ph->recv=monitor_recv;
715// ph->send_dcw=NULL;
716}
717
718
Note: See TracBrowser for help on using the repository browser.