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