Home | History | Annotate | Download | only in routed

Lines Matching defs:ftrace

55 FILE	*ftrace = stdout;		/* output trace file */
173 (void)fprintf(ftrace, "-- %s --\n", ts(now.tv_sec));
184 if (ftrace != 0) {
187 vfprintf(ftrace, p, args);
189 (void)fputc('\n',ftrace);
190 fflush(ftrace);
204 if (ftrace != 0 && zap_stdio) {
205 if (ftrace != stdout)
206 fclose(ftrace);
207 ftrace = 0;
226 if (ftrace != 0) {
227 fflush(ftrace);
228 if (ferror(ftrace))
229 trace_off("tracing off: %s", strerror(ferror(ftrace)));
240 if (ftrace != 0) {
243 vfprintf(ftrace, p, args);
245 (void)fputc('\n',ftrace);
315 if (ftrace == 0) {
373 ftrace = n_ftrace;
377 dup2(fileno(ftrace), STDOUT_FILENO);
378 dup2(fileno(ftrace), STDERR_FILENO);
416 if (new_tracelevel > tracelevel && ftrace == 0) {
553 (void)putc('<', ftrace);
564 (void)putc(c, ftrace);
565 (void)fprintf(ftrace, "%s", tbl->bits_name);
575 (void)putc(c, ftrace);
576 (void)fprintf(ftrace, tbl->bits_name, field);
581 (void)fputs("> ", ftrace);
615 (void)fprintf(ftrace, "metric=%-2d ", rts->rts_metric);
617 (void)fprintf(ftrace, "%s ", (rts->rts_ifp == 0 ?
621 (void)fprintf(ftrace, "router=%s ",
624 (void)fprintf(ftrace, "%s ", ts(rts->rts_time));
627 (void)fprintf(ftrace, "tag=%#x ", ntohs(rts->rts_tag));
631 (void)fprintf(ftrace, "de_ag=%d ", i);
641 if (!TRACEACTIONS || ftrace == 0)
645 (void)fprintf(ftrace, "%-3s interface %-4s ", act, ifp->int_name);
646 (void)fprintf(ftrace, "%-15s-->%-15s ",
653 (void)fprintf(ftrace, "metric=%d ", ifp->int_metric);
655 (void)fprintf(ftrace, "adj_inmetric=%u ",
658 (void)fprintf(ftrace, "adj_outmetric=%u ",
662 (void)fprintf(ftrace, "fake_default=%u ", ifp->int_d_metric);
665 (void)fputc('\n',ftrace);
674 if (!TRACEACTIONS || ftrace == 0)
686 (void)fprintf(ftrace, "Del #%d %-35s ",
694 (void)fprintf(ftrace, "Chg #%d %-35s ",
703 (void)fprintf(ftrace, "\n %19s%-16s ", "",
716 (void)fprintf(ftrace, "Add #%d %-35s ",
723 (void)fputc('\n',ftrace);
734 if (ftrace == 0)
739 vfprintf(ftrace, p, args);
741 (void)fputc('\n',ftrace);
752 if (!TRACEACTIONS || ftrace == 0)
757 vfprintf(ftrace, p, args);
759 (void)fputc('\n',ftrace);
770 if (!TRACEPACKETS || ftrace == 0)
775 vfprintf(ftrace, p, args);
777 (void)fputc('\n',ftrace);
787 if (ftrace == 0)
799 (void)fprintf(ftrace, "%s %-35s ",
806 (void)fprintf(ftrace, "\n%*s %19s%-16s ",
819 (void)fputc('\n',ftrace);
826 if (ftrace == 0)
830 (void)fprintf(ftrace, "%s %-35s ",
835 (void)fputc('\n',ftrace);
848 (void)fprintf(ftrace, " %-35s ",
854 (void)fprintf(ftrace, "pm=%d@%s",
860 (void)fprintf(ftrace,"\n #%d%15s%-16s ",
865 (void)fputc('\n',ftrace);
876 if (ftrace == 0)
880 (void)fputs("current daemon state:\n", ftrace);
898 if (!TRACEPACKETS || ftrace == 0)
904 (void)fprintf(ftrace, "%s bad RIPv%d cmd=%d %s"
913 (void)fprintf(ftrace, "%s RIPv%d %s %s %s.%d%s%s\n",
934 (void)fputs("\tQUERY ", ftrace);
936 (void)fprintf(ftrace, "%s ",
939 (void)fprintf(ftrace, "mask=%#x ",
942 (void)fprintf(ftrace, "nhop=%s ",
945 (void)fprintf(ftrace, "tag=%#x ",
947 (void)fputc('\n',ftrace);
954 (void)fprintf(ftrace, "\tPassword"
964 (void)fprintf(ftrace,
978 (void)fprintf(ftrace,
984 (void)fprintf(ftrace, "%02x ",
986 (void)fputc('\n',ftrace);
992 (void)fprintf(ftrace,
998 (void)fprintf(ftrace, "\t%-18s ",
1003 (void)fprintf(ftrace, "\t%-18s ",
1008 (void)fprintf(ftrace, "metric=%-2d ",
1011 (void)fprintf(ftrace, " nhop=%s ",
1014 (void)fprintf(ftrace, "tag=%#x",
1016 (void)fputc('\n',ftrace);
1019 (void)fprintf(ftrace, "truncated record, len %d\n",
1024 fprintf(ftrace, "\tfile=\"%.*s\"\n", size-4,