Lines Matching refs:nl
727 struct natlog *nl;
734 nl = (struct natlog *)((char *)ipl + sizeof(*ipl));
746 (void) sprintf(t, ".%-.6ld @%hd ", ipl->ipl_usec, nl->nlg_rule + 1);
749 if (nl->nlg_type == NL_NEWMAP)
751 else if (nl->nlg_type == NL_NEWRDR)
753 else if (nl->nlg_type == NL_FLUSH)
755 else if (nl->nlg_type == NL_EXPIRE)
757 else if (nl->nlg_type == NL_NEWBIMAP)
759 else if (nl->nlg_type == NL_NEWBLOCK)
761 else if (nl->nlg_type == NL_CLONE)
764 sprintf(t, "Type: %d ", nl->nlg_type);
767 proto = getproto(nl->nlg_p);
769 (void) sprintf(t, "%s,%s <- -> ", hostname(res, nl->nlg_v,
770 (u_32_t *)&nl->nlg_inip),
771 portname(res, proto, (u_int)nl->nlg_inport));
773 (void) sprintf(t, "%s,%s ", hostname(res, nl->nlg_v,
774 (u_32_t *)&nl->nlg_outip),
775 portname(res, proto, (u_int)nl->nlg_outport));
777 (void) sprintf(t, "[%s,%s]", hostname(res, nl->nlg_v,
778 (u_32_t *)&nl->nlg_origip),
779 portname(res, proto, (u_int)nl->nlg_origport));
781 if (nl->nlg_type == NL_EXPIRE) {
784 (long long)nl->nlg_pkts[0],
785 (long long)nl->nlg_pkts[1],
786 (long long)nl->nlg_bytes[0],
787 (long long)nl->nlg_bytes[1]);
790 nl->nlg_pkts[0], nl->nlg_pkts[1],
791 nl->nlg_bytes[0], nl->nlg_bytes[1]);