Lines Matching defs:ftrace

55 FILE	*ftrace;			/* output trace file */
172 (void)fprintf(ftrace, "-- %s --\n", ts(now.tv_sec));
183 if (ftrace != NULL) {
186 vfprintf(ftrace, p, args);
188 (void)fputc('\n',ftrace);
189 fflush(ftrace);
203 if (ftrace != NULL && zap_stdio) {
204 if (ftrace != stdout)
205 fclose(ftrace);
206 ftrace = NULL;
225 if (ftrace != NULL) {
226 fflush(ftrace);
227 if (ferror(ftrace))
228 trace_off("tracing off: %s", strerror(ferror(ftrace)));
239 if (ftrace != NULL) {
242 vfprintf(ftrace, p, args);
244 (void)fputc('\n',ftrace);
314 if (ftrace == NULL) {
372 ftrace = n_ftrace;
376 dup2(fileno(ftrace), STDOUT_FILENO);
377 dup2(fileno(ftrace), STDERR_FILENO);
415 if (new_tracelevel > tracelevel && ftrace == NULL) {
552 (void)putc('<', ftrace);
563 (void)putc(c, ftrace);
564 (void)fprintf(ftrace, "%s", tbl->bits_name);
574 (void)putc(c, ftrace);
575 (void)fprintf(ftrace, tbl->bits_name, field);
580 (void)fputs("> ", ftrace);
611 (void)fprintf(ftrace, "metric=%-2d ", rts->rts_metric);
613 (void)fprintf(ftrace, "%s ", (rts->rts_ifp == NULL ?
617 (void)fprintf(ftrace, "router=%s ",
620 (void)fprintf(ftrace, "%s ", ts(rts->rts_time));
623 (void)fprintf(ftrace, "tag=%#x ", ntohs(rts->rts_tag));
627 (void)fprintf(ftrace, "de_ag=%d ", i);
637 if (!TRACEACTIONS || ftrace == NULL)
641 (void)fprintf(ftrace, "%-3s interface %-4s ", act, ifp->int_name);
642 (void)fprintf(ftrace, "%-15s-->%-15s ",
649 (void)fprintf(ftrace, "metric=%d ", ifp->int_metric);
651 (void)fprintf(ftrace, "adj_inmetric=%u ",
654 (void)fprintf(ftrace, "adj_outmetric=%u ",
658 (void)fprintf(ftrace, "fake_default=%u ", ifp->int_d_metric);
661 (void)fputc('\n',ftrace);
670 if (!TRACEACTIONS || ftrace == NULL)
682 (void)fprintf(ftrace, "Del #%d %-35s ",
690 (void)fprintf(ftrace, "Chg #%d %-35s ",
699 (void)fprintf(ftrace, "\n %19s%-16s ", "",
712 (void)fprintf(ftrace, "Add #%d %-35s ",
719 (void)fputc('\n',ftrace);
730 if (ftrace == NULL)
735 vfprintf(ftrace, p, args);
737 (void)fputc('\n',ftrace);
748 if (!TRACEACTIONS || ftrace == NULL)
753 vfprintf(ftrace, p, args);
755 (void)fputc('\n',ftrace);
766 if (!TRACEPACKETS || ftrace == NULL)
771 vfprintf(ftrace, p, args);
773 (void)fputc('\n',ftrace);
783 if (ftrace == NULL)
795 (void)fprintf(ftrace, "%s %-35s ",
802 (void)fprintf(ftrace, "\n%*s %19s%-16s ",
815 (void)fputc('\n',ftrace);
822 if (ftrace == NULL)
826 (void)fprintf(ftrace, "%s %-35s ",
831 (void)fputc('\n',ftrace);
844 (void)fprintf(ftrace, " %-35s ",
850 (void)fprintf(ftrace, "pm=%d@%s",
856 (void)fprintf(ftrace,"\n #%d%15s%-16s ",
861 (void)fputc('\n',ftrace);
872 if (ftrace == NULL)
876 (void)fputs("current daemon state:\n", ftrace);
894 if (!TRACEPACKETS || ftrace == NULL)
900 (void)fprintf(ftrace, "%s bad RIPv%d cmd=%d %s"
909 (void)fprintf(ftrace, "%s RIPv%d %s %s %s.%d%s%s\n",
930 (void)fputs("\tQUERY ", ftrace);
932 (void)fprintf(ftrace, "%s ",
935 (void)fprintf(ftrace, "mask=%#x ",
938 (void)fprintf(ftrace, "nhop=%s ",
941 (void)fprintf(ftrace, "tag=%#x ",
943 (void)fputc('\n',ftrace);
950 (void)fprintf(ftrace, "\tPassword"
960 (void)fprintf(ftrace,
974 (void)fprintf(ftrace,
980 (void)fprintf(ftrace, "%02x ",
982 (void)fputc('\n',ftrace);
988 (void)fprintf(ftrace,
994 (void)fprintf(ftrace, "\t%-18s ",
999 (void)fprintf(ftrace, "\t%-18s ",
1004 (void)fprintf(ftrace, "metric=%-2d ",
1007 (void)fprintf(ftrace, " nhop=%s ",
1010 (void)fprintf(ftrace, "tag=%#x",
1012 (void)fputc('\n',ftrace);
1015 (void)fprintf(ftrace, "truncated record, len %d\n",
1020 fprintf(ftrace, "\tfile=\"%.*s\"\n", size-4,