Lines Matching refs:NetTrace
76 FILE *NetTrace = 0; /* Not in bss, since needs to stay */ variable
122 if (NetTrace && NetTrace != stdout)
123 (void) fclose(NetTrace);
125 NetTrace = fopen(file, "w");
126 if (NetTrace) {
132 NetTrace = stdout;
151 (void) fprintf(NetTrace, "%c 0x%x\t", direction, offset);
156 (void) fprintf(NetTrace, "%c%.2x",
166 (void) fprintf(NetTrace, "%.2x", (*pThis)&0xff);
172 if (NetTrace == stdout) {
173 (void) fprintf(NetTrace, "\r\n");
175 (void) fprintf(NetTrace, "\n");
178 (void) fflush(NetTrace);
183 (void) fflush(NetTrace);
196 (void) fprintf(NetTrace, "%s IAC %s", direction,
199 (void) fprintf(NetTrace, "%s IAC %d", direction,
206 (void) fprintf(NetTrace, "%s %s ", direction, fmt);
208 (void) fprintf(NetTrace, "%s", TELOPT(option));
210 (void) fprintf(NetTrace, "EXOPL");
212 (void) fprintf(NetTrace, "%d", option);
214 (void) fprintf(NetTrace, "%s %d %d", direction, cmd,
217 if (NetTrace == stdout) {
218 (void) fprintf(NetTrace, "\r\n");
219 (void) fflush(NetTrace);
221 (void) fprintf(NetTrace, "\n");
331 (void) fprintf(NetTrace, "%s IAC SB ",
340 (void) fprintf(NetTrace,
343 (void) fprintf(NetTrace, "%s ",
346 (void) fprintf(NetTrace, "%s ",
349 (void) fprintf(NetTrace, "%d ",
352 (void) fprintf(NetTrace, "%s",
355 (void) fprintf(NetTrace, "%s",
358 (void) fprintf(NetTrace, "%d",
360 (void) fprintf(NetTrace,
367 (void) fprintf(NetTrace, "(Empty suboption??\?)");
368 if (NetTrace == stdout)
369 (void) fflush(NetTrace);
374 (void) fprintf(NetTrace, "TERMINAL-TYPE ");
377 (void) fprintf(NetTrace, "IS \"%.*s\"",
382 (void) fprintf(NetTrace, "SEND");
385 (void) fprintf(NetTrace,
391 (void) fprintf(NetTrace, "TERMINAL-SPEED");
393 (void) fprintf(NetTrace,
399 (void) fprintf(NetTrace, " IS ");
400 (void) fprintf(NetTrace, "%.*s", length-2,
405 (void) fprintf(NetTrace, " SEND");
407 (void) fprintf(NetTrace,
410 (void) fprintf(NetTrace, " ?%d?",
417 (void) fprintf(NetTrace, "TOGGLE-FLOW-CONTROL");
419 (void) fprintf(NetTrace,
425 (void) fprintf(NetTrace, " OFF");
428 (void) fprintf(NetTrace, " ON");
431 (void) fprintf(NetTrace, " RESTART-ANY");
434 (void) fprintf(NetTrace, " RESTART-XON");
437 (void) fprintf(NetTrace, " %d (unknown)",
441 (void) fprintf(NetTrace, " ?%d?",
446 (void) fprintf(NetTrace, "NAWS");
448 (void) fprintf(NetTrace,
453 (void) fprintf(NetTrace, " ?%d?", pointer[1]);
456 (void) fprintf(NetTrace, " %d %d (%d)",
461 (void) fprintf(NetTrace, " ?%d?", pointer[3]);
464 (void) fprintf(NetTrace, " %d %d (%d)",
469 (void) fprintf(NetTrace, " ?%d?", pointer[i]);
473 (void) fprintf(NetTrace, "AUTHENTICATION");
475 (void) fprintf(NetTrace,
482 (void) fprintf(NetTrace, " %s ",
486 (void) fprintf(NetTrace, "%s ",
489 (void) fprintf(NetTrace, "%d ",
492 (void) fprintf(NetTrace,
496 (void) fprintf(NetTrace, "%s|%s",
504 (void) fprintf(NetTrace, "%s", buf);
509 (void) fprintf(NetTrace, " SEND ");
512 (void) fprintf(NetTrace, "%s ",
515 (void) fprintf(NetTrace, "%d ",
518 (void) fprintf(NetTrace,
523 (void) fprintf(NetTrace, "%s|%s ",
536 (void) fprintf(NetTrace, " NAME \"");
538 (void) putc(pointer[i++], NetTrace);
539 (void) putc('"', NetTrace);
544 (void) fprintf(NetTrace, " ?%d?", pointer[i]);
550 (void) fprintf(NetTrace, "ENCRYPT");
552 (void) fprintf(NetTrace,
558 (void) fprintf(NetTrace, " START");
562 (void) fprintf(NetTrace, " END");
566 (void) fprintf(NetTrace, " REQUEST-START");
570 (void) fprintf(NetTrace, " REQUEST-END");
575 (void) fprintf(NetTrace, " %s ",
579 (void) fprintf(NetTrace, " (partial "
584 (void) fprintf(NetTrace, "%s ",
587 (void) fprintf(NetTrace,
592 (void) fprintf(NetTrace, "%s", buf);
597 (void) fprintf(NetTrace, " SUPPORT ");
600 (void) fprintf(NetTrace, "%s ",
603 (void) fprintf(NetTrace, "%d ",
610 (void) fprintf(NetTrace, " ENC_KEYID ");
614 (void) fprintf(NetTrace, " DEC_KEYID ");
618 (void) fprintf(NetTrace, " %d (unknown)",
622 (void) fprintf(NetTrace, " %d",
629 (void) fprintf(NetTrace, "LINEMODE ");
631 (void) fprintf(NetTrace,
637 (void) fprintf(NetTrace, "WILL ");
640 (void) fprintf(NetTrace, "WONT ");
643 (void) fprintf(NetTrace, "DO ");
646 (void) fprintf(NetTrace, "DONT ");
649 (void) fprintf(NetTrace,
655 (void) fprintf(NetTrace,
658 (void) fprintf(NetTrace, " %x",
662 (void) fprintf(NetTrace, "%d (unknown)",
665 (void) fprintf(NetTrace,
672 (void) fprintf(NetTrace, "SLC");
675 (void) fprintf(NetTrace, " %s",
679 (void) fprintf(NetTrace, " %d",
684 (void) fprintf(NetTrace,
688 (void) fprintf(NetTrace,
692 (void) fprintf(NetTrace,
696 (void) fprintf(NetTrace,
700 (void) fprintf(NetTrace, "%s%s%s",
710 (void) fprintf(NetTrace, "(0x%x)",
712 (void) fprintf(NetTrace, " %d;",
719 (void) fprintf(NetTrace, " ?%d?",
724 (void) fprintf(NetTrace, "MODE ");
726 (void) fprintf(NetTrace,
741 (void) fprintf(NetTrace, "%s", tbuf[1] ?
745 (void) fprintf(NetTrace, " (0x%x)",
748 (void) fprintf(NetTrace, " ?0x%x?",
752 (void) fprintf(NetTrace, "%d (unknown)",
755 (void) fprintf(NetTrace, " %d",
764 (void) fprintf(NetTrace, "STATUS");
769 (void) fprintf(NetTrace,
772 (void) fprintf(NetTrace,
776 (void) fprintf(NetTrace, " ?%d?",
782 if (NetTrace == stdout)
783 (void) fprintf(NetTrace,
786 (void) fprintf(NetTrace,
808 NetTrace,
816 NetTrace,
821 if (NetTrace == stdout)
823 NetTrace,
827 NetTrace,
832 (void) fprintf(NetTrace,
850 (void) fprintf(NetTrace, " SE");
855 if (NetTrace == stdout)
856 (void) fprintf(NetTrace, "\r\n");
858 (void) fprintf(NetTrace, "\n");
863 (void) fprintf(NetTrace,
874 (void) fprintf(NetTrace, "X-DISPLAY-LOCATION ");
877 (void) fprintf(NetTrace, "IS \"%.*s\"",
881 (void) fprintf(NetTrace, "SEND");
884 (void) fprintf(NetTrace,
891 (void) fprintf(NetTrace, "NEW-ENVIRON ");
895 (void) fprintf(NetTrace, "OLD-ENVIRON ");
900 (void) fprintf(NetTrace, "IS ");
903 (void) fprintf(NetTrace, "SEND ");
906 (void) fprintf(NetTrace, "INFO ");
921 (void) fprintf(NetTrace,
925 (void) fprintf(NetTrace,
929 (void) fprintf(NetTrace, "\" VALUE " + noquote);
939 (void) fprintf(NetTrace,
943 (void) fprintf(NetTrace,
947 (void) fprintf(NetTrace, "\" VAR " + noquote);
952 (void) fprintf(NetTrace, "\" ESC " + noquote);
957 (void) fprintf(NetTrace, "\" USERVAR " + noquote);
965 (void) putc('"', NetTrace);
968 (void) putc(pointer[i], NetTrace);
970 (void) fprintf(NetTrace, "\" %03o " + noquote,
978 (void) putc('"', NetTrace);
986 (void) fprintf(NetTrace, "%s (unknown)", TELOPT(pointer[0]));
988 (void) fprintf(NetTrace, "%d (unknown)", pointer[0]);
990 (void) fprintf(NetTrace, " %d", pointer[i]);
994 if (NetTrace == stdout)
995 (void) fprintf(NetTrace, "\r\n");
997 (void) fprintf(NetTrace, "\n");
999 if (NetTrace == stdout)
1000 (void) fflush(NetTrace);