Lines Matching defs:logf
182 FILE *logf;
274 (void) fprintf(logf, "%s : ", gettime());
275 (void) fprintf(logf, gettext("tnd started. pid= %d\n"),
277 (void) fprintf(logf, "%s : ", gettime());
278 (void) fprintf(logf,
280 (void) fflush(logf);
316 (void) fprintf(logf, gettext("rhaddr_compar_mask mask = 0x%4x, \
319 (void) fprintf(logf, gettext("rhaddr_compar_mask return = %d\n"),
337 (void) fprintf(logf, gettext("\t tp1 saddrp IP : %s %s\n"),
453 logf = tnlog_open(logfile);
461 if ((debugl > 0) && (logf != NULL)) {
462 (void) fprintf(logf, "%s : ", gettime());
463 (void) fprintf(logf,
466 (void) fflush(logf);
502 if (debugl && (logf != NULL)) {
503 (void) fprintf(logf, "%s : ", gettime());
504 (void) fprintf(logf,
506 (void) fflush(logf);
513 if (debugl && (logf != NULL)) {
514 (void) fprintf(logf, "%s : ", gettime());
515 (void) fprintf(logf,
517 (void) fflush(logf);
626 if (debugl && (logf != NULL)) {
627 (void) fprintf(logf, "%s : ", gettime());
628 (void) fprintf(logf, gettext("tnrhtp() failed 0: %s\n"),
630 (void) fprintf(logf,
634 (void) fflush(logf);
679 (void) fprintf(logf, gettext("getrhent template name: %s\n"),
684 if (debugl && (logf != NULL))
685 (void) fprintf(logf,
697 (void) fprintf(logf, gettext("nss_get_rh() v4\n"));
712 (void) fprintf(logf, gettext("nss_get_rh() v6\n"));
739 if (logf != NULL)
740 (void) fprintf(logf,
945 (void) fprintf(logf, gettext("\trhtable_search_and_update IP address:\
958 (void) fprintf(logf, gettext("\tsearch_and_update i = %d hash = %d\n"),
961 (void) fprintf(logf, gettext("\trhent visited = %d\n"),
965 (void) fprintf(logf, gettext("\tsearch_and_update null\n"));
1010 (void) fprintf(logf, gettext("rhtable added i = %d, hash = %d\n"),
1018 (void) fprintf(logf, gettext("search_and_update rflag=%d\n"), rflag);
1118 (void) fprintf(logf, gettext("rhtable_lookup i = %d, hash = %d\n"),
1126 (void) fprintf(logf, gettext("rhtable_lookup addr = %s, tmpl = %s\n"),
1135 (void) fprintf(logf, gettext("\trhtable_lookup failed\n"));
1181 (void) fprintf(logf, gettext("\tenter add_cache_entry\n"));
1192 (void) fprintf(logf, gettext("adding cache entry\n"));
1298 (void) fprintf(logf, "update_cache_table i = %d\n", i);
1306 (void) fprintf(logf,
1308 (void) fprintf(logf, "\ti = %d, tmpmask = 0x%4x\n",
1322 (void) fprintf(logf,
1442 (void) fprintf(logf, gettext("walk_cache_table rflag=%d\n"), rflag);
1542 (void) fprintf(logf, "load op =%d\n",
1640 (void) fprintf(logf, gettext("\t###update_rh_entry op = %d\n"), op);
1644 if (debugl && (logf != NULL)) {
1645 (void) fprintf(logf, "%s : ", gettime());
1646 (void) fprintf(logf, gettext("tnrh() failed: %s\n"),
1649 (void) fprintf(logf,
1654 (void) fprintf(logf,
1658 (void) fflush(logf);
1677 (void) fprintf(logf, "enter poll_now at %s \n", gettime());
1678 (void) fflush(logf);
1686 (void) fprintf(logf, "now search for tnrhdb update %s \n", gettime());
1690 if (logf != NULL) {
1691 (void) fprintf(logf, "tnrhdb needs update %s \n",
1707 if (logf != NULL) {
1711 (void) fprintf(logf, "rh table begin\n");
1714 (void) fprintf(logf, "rh table end \n");
1715 (void) fprintf(logf, "-------------------------\n\n");
1716 (void) fflush(logf);
1732 if (debugl && (logf != NULL)) {
1733 (void) fprintf(logf, "%s : ", gettime());
1734 (void) fprintf(logf, gettext("tnd terminating on signal.\n"));
1735 (void) fflush(logf);
1773 (void) fprintf(logf, "\tIP address: %s", inet_ntoa(addr));
1774 (void) fprintf(logf, "\tTemplate name: %s", tlbt->template_name);
1775 (void) fprintf(logf, "\tMask length used: %d\n", tlbt->masklen_used);
1783 (void) fprintf(logf, "\tIP address: %s",
1785 (void) fprintf(logf, "\tTemplate name: %s", tlbt->template_name);
1786 (void) fprintf(logf, "\tMask length used: %d\n", tlbt->masklen_used);
1795 (void) fprintf(logf, "-------------------------\n");
1796 (void) fprintf(logf, "Cache table begin\n");
1803 (void) fprintf(logf, "Cache table end \n");
1804 (void) fprintf(logf, "-------------------------\n\n");
1813 (void) fprintf(logf, "-------------------------\n");
1814 (void) fprintf(logf, "Cache table begin\n");
1821 (void) fprintf(logf, "Cache table end \n");
1822 (void) fprintf(logf, "-------------------------\n\n");
1835 (void) fprintf(logf, gettext("\tIP address: %s"),
1839 (void) fprintf(logf, gettext("\tIP address: %s"),
1844 (void) fprintf(logf,
1846 (void) fprintf(logf, gettext("\tprefix_len: %d\n"), ent->rh_prefix);
1847 (void) fflush(logf);
1853 (void) fprintf(logf, "tlbt addr = 0x%4x name = %s \
1862 (void) fprintf(logf, "-----------------------------\n\n");
1869 (void) fprintf(logf, "-----------------------------\n\n");