Lines Matching defs:nl
645 struct natlog *nl;
670 nl = (struct natlog *)((char *)ipl + sizeof(*ipl));
683 sprintf(t, ".%-.6ld @%hd ", (long)ipl->ipl_usec, nl->nl_rule + 1);
686 switch (nl->nl_action)
713 sprintf(t, "NAT:Action(%d)", nl->nl_action);
719 switch (nl->nl_type)
766 sprintf(t, "-Type(%d) ", nl->nl_type);
771 proto = getlocalproto(nl->nl_p[0]);
773 family = vtof(nl->nl_v[0]);
776 sprintf(t, "%s,%s <- -> ", hostname(family, nl->nl_osrcip.i6),
777 portlocalname(res, proto, (u_int)nl->nl_osrcport));
779 sprintf(t, "%s,%s ", hostname(family, nl->nl_nsrcip.i6),
780 portlocalname(res, proto, (u_int)nl->nl_nsrcport));
782 sprintf(t, "[%s,%s] ", hostname(family, nl->nl_odstip.i6),
783 portlocalname(res, proto, (u_int)nl->nl_odstport));
785 sprintf(t, "%s,%s ", hostname(family, nl->nl_osrcip.i6),
786 portlocalname(res, proto, (u_int)nl->nl_osrcport));
788 sprintf(t, "%s,%s <- -> ", hostname(family, nl->nl_odstip.i6),
789 portlocalname(res, proto, (u_int)nl->nl_odstport));
791 sprintf(t, "%s,%s ", hostname(family, nl->nl_nsrcip.i6),
792 portlocalname(res, proto, (u_int)nl->nl_nsrcport));
794 sprintf(t, "%s,%s ", hostname(family, nl->nl_ndstip.i6),
795 portlocalname(res, proto, (u_int)nl->nl_ndstport));
799 strcpy(t, getlocalproto(nl->nl_p[0]));
802 if (nl->nl_action == NL_EXPIRE || nl->nl_action == NL_FLUSH) {
813 nl->nl_pkts[0], nl->nl_pkts[1],
814 nl->nl_bytes[0], nl->nl_bytes[1]);