Lines Matching refs:sl

810 	struct	ipslog *sl;  local
816 sl = (struct ipslog *)((char *)ipl + sizeof(*ipl));
831 if (sl->isl_type == ISL_NEW)
833 else if (sl->isl_type == ISL_CLONE)
835 else if (sl->isl_type == ISL_EXPIRE) {
836 if ((sl->isl_p == IPPROTO_TCP) &&
837 (sl->isl_state[0] > IPF_TCPS_ESTABLISHED ||
838 sl->isl_state[1] > IPF_TCPS_ESTABLISHED))
842 } else if (sl->isl_type == ISL_FLUSH)
844 else if (sl->isl_type == ISL_INTERMEDIATE)
846 else if (sl->isl_type == ISL_REMOVE)
848 else if (sl->isl_type == ISL_KILLED)
851 sprintf(t, "Type: %d ", sl->isl_type);
854 proto = getproto(sl->isl_p);
856 if (sl->isl_p == IPPROTO_TCP || sl->isl_p == IPPROTO_UDP) {
858 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_src),
859 portname(res, proto, (u_int)sl->isl_sport));
862 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst),
863 portname(res, proto, (u_int)sl->isl_dport), proto);
864 } else if (sl->isl_p == IPPROTO_ICMP) {
865 (void) sprintf(t, "%s -> ", hostname(res, sl->isl_v,
866 (u_32_t *)&sl->isl_src));
869 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst),
870 sl->isl_itype);
871 } else if (sl->isl_p == IPPROTO_ICMPV6) {
872 (void) sprintf(t, "%s -> ", hostname(res, sl->isl_v,
873 (u_32_t *)&sl->isl_src));
876 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst),
877 sl->isl_itype);
880 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_src));
883 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst),
887 if (sl->isl_tag != FR_NOLOGTAG) {
888 (void) sprintf(t, " tag %u", sl->isl_tag);
891 if (sl->isl_type != ISL_NEW) {
905 sl->isl_pkts[0], sl->isl_bytes[0],
906 sl->isl_pkts[1], sl->isl_bytes[1],
907 sl->isl_pkts[2], sl->isl_bytes[2],
908 sl->isl_pkts[3], sl->isl_bytes[3]);