Lines Matching refs:logf

180 FILE	 *logf;  variable
272 (void) fprintf(logf, "%s : ", gettime()); in main()
273 (void) fprintf(logf, gettext("tnd started. pid= %d\n"), in main()
275 (void) fprintf(logf, "%s : ", gettime()); in main()
276 (void) fprintf(logf, in main()
278 (void) fflush(logf); in main()
314 (void) fprintf(logf, gettext("rhaddr_compar_mask mask = 0x%4x, \ in rhaddr_compar_mask()
317 (void) fprintf(logf, gettext("rhaddr_compar_mask return = %d\n"), in rhaddr_compar_mask()
335 (void) fprintf(logf, gettext("\t tp1 saddrp IP : %s %s\n"), in rhaddr_compar()
451 logf = tnlog_open(logfile);
459 if ((debugl > 0) && (logf != NULL)) {
460 (void) fprintf(logf, "%s : ", gettime());
461 (void) fprintf(logf,
464 (void) fflush(logf);
500 if (debugl && (logf != NULL)) { in detachfromtty()
501 (void) fprintf(logf, "%s : ", gettime()); in detachfromtty()
502 (void) fprintf(logf, in detachfromtty()
504 (void) fflush(logf); in detachfromtty()
511 if (debugl && (logf != NULL)) { in detachfromtty()
512 (void) fprintf(logf, "%s : ", gettime()); in detachfromtty()
513 (void) fprintf(logf, in detachfromtty()
515 (void) fflush(logf); in detachfromtty()
624 if (debugl && (logf != NULL)) { in load_tp_entry()
625 (void) fprintf(logf, "%s : ", gettime()); in load_tp_entry()
626 (void) fprintf(logf, gettext("tnrhtp() failed 0: %s\n"), in load_tp_entry()
628 (void) fprintf(logf, in load_tp_entry()
632 (void) fflush(logf); in load_tp_entry()
677 (void) fprintf(logf, gettext("getrhent template name: %s\n"), in nss_get_rh()
682 if (debugl && (logf != NULL)) in nss_get_rh()
683 (void) fprintf(logf, in nss_get_rh()
695 (void) fprintf(logf, gettext("nss_get_rh() v4\n")); in nss_get_rh()
710 (void) fprintf(logf, gettext("nss_get_rh() v6\n")); in nss_get_rh()
737 if (logf != NULL) in nss_get_rh()
738 (void) fprintf(logf, in nss_get_rh()
943 (void) fprintf(logf, gettext("\trhtable_search_and_update IP address:\ in rhtable_search_and_update()
956 (void) fprintf(logf, gettext("\tsearch_and_update i = %d hash = %d\n"), in rhtable_search_and_update()
959 (void) fprintf(logf, gettext("\trhent visited = %d\n"), in rhtable_search_and_update()
963 (void) fprintf(logf, gettext("\tsearch_and_update null\n")); in rhtable_search_and_update()
1008 (void) fprintf(logf, gettext("rhtable added i = %d, hash = %d\n"), in rhtable_search_and_update()
1016 (void) fprintf(logf, gettext("search_and_update rflag=%d\n"), rflag); in rhtable_search_and_update()
1116 (void) fprintf(logf, gettext("rhtable_lookup i = %d, hash = %d\n"), in rhtable_lookup()
1124 (void) fprintf(logf, gettext("rhtable_lookup addr = %s, tmpl = %s\n"), in rhtable_lookup()
1133 (void) fprintf(logf, gettext("\trhtable_lookup failed\n")); in rhtable_lookup()
1179 (void) fprintf(logf, gettext("\tenter add_cache_entry\n")); in add_cache_entry()
1190 (void) fprintf(logf, gettext("adding cache entry\n")); in add_cache_entry()
1296 (void) fprintf(logf, "update_cache_table i = %d\n", i); in update_cache_table()
1304 (void) fprintf(logf, in update_cache_table()
1306 (void) fprintf(logf, "\ti = %d, tmpmask = 0x%4x\n", in update_cache_table()
1320 (void) fprintf(logf, in update_cache_table()
1440 (void) fprintf(logf, gettext("walk_cache_table rflag=%d\n"), rflag); in walk_cache_table()
1540 (void) fprintf(logf, "load op =%d\n", in load_rh_marked()
1638 (void) fprintf(logf, gettext("\t###update_rh_entry op = %d\n"), op); in update_rh_entry()
1642 if (debugl && (logf != NULL)) { in update_rh_entry()
1643 (void) fprintf(logf, "%s : ", gettime()); in update_rh_entry()
1644 (void) fprintf(logf, gettext("tnrh() failed: %s\n"), in update_rh_entry()
1647 (void) fprintf(logf, in update_rh_entry()
1652 (void) fprintf(logf, in update_rh_entry()
1656 (void) fflush(logf); in update_rh_entry()
1675 (void) fprintf(logf, "enter poll_now at %s \n", gettime()); in poll_now()
1676 (void) fflush(logf); in poll_now()
1684 (void) fprintf(logf, "now search for tnrhdb update %s \n", gettime()); in poll_now()
1688 if (logf != NULL) { in poll_now()
1689 (void) fprintf(logf, "tnrhdb needs update %s \n", in poll_now()
1705 if (logf != NULL) { in poll_now()
1709 (void) fprintf(logf, "rh table begin\n"); in poll_now()
1712 (void) fprintf(logf, "rh table end \n"); in poll_now()
1713 (void) fprintf(logf, "-------------------------\n\n"); in poll_now()
1714 (void) fflush(logf); in poll_now()
1730 if (debugl && (logf != NULL)) { in terminate()
1731 (void) fprintf(logf, "%s : ", gettime()); in terminate()
1732 (void) fprintf(logf, gettext("tnd terminating on signal.\n")); in terminate()
1733 (void) fflush(logf); in terminate()
1771 (void) fprintf(logf, "\tIP address: %s", inet_ntoa(addr)); in print_cache_entry()
1772 (void) fprintf(logf, "\tTemplate name: %s", tlbt->template_name); in print_cache_entry()
1773 (void) fprintf(logf, "\tMask length used: %d\n", tlbt->masklen_used); in print_cache_entry()
1781 (void) fprintf(logf, "\tIP address: %s", in print_cache_entry_v6()
1783 (void) fprintf(logf, "\tTemplate name: %s", tlbt->template_name); in print_cache_entry_v6()
1784 (void) fprintf(logf, "\tMask length used: %d\n", tlbt->masklen_used); in print_cache_entry_v6()
1793 (void) fprintf(logf, "-------------------------\n"); in cachetable_print()
1794 (void) fprintf(logf, "Cache table begin\n"); in cachetable_print()
1801 (void) fprintf(logf, "Cache table end \n"); in cachetable_print()
1802 (void) fprintf(logf, "-------------------------\n\n"); in cachetable_print()
1811 (void) fprintf(logf, "-------------------------\n"); in cachetable_print_v6()
1812 (void) fprintf(logf, "Cache table begin\n"); in cachetable_print_v6()
1819 (void) fprintf(logf, "Cache table end \n"); in cachetable_print_v6()
1820 (void) fprintf(logf, "-------------------------\n\n"); in cachetable_print_v6()
1833 (void) fprintf(logf, gettext("\tIP address: %s"), in print_entry()
1837 (void) fprintf(logf, gettext("\tIP address: %s"), in print_entry()
1842 (void) fprintf(logf, in print_entry()
1844 (void) fprintf(logf, gettext("\tprefix_len: %d\n"), ent->rh_prefix); in print_entry()
1845 (void) fflush(logf); in print_entry()
1851 (void) fprintf(logf, "tlbt addr = 0x%4x name = %s \ in print_tlbt()
1860 (void) fprintf(logf, "-----------------------------\n\n"); in rhtable_print()
1867 (void) fprintf(logf, "-----------------------------\n\n"); in rhtable_print_v6()