Lines Matching full:sn
653 print_src_node(struct pfctl_src_node *sn, int opts) in print_src_node() argument
659 if (sn->af == AF_INET) in print_src_node()
664 aw.v.a.addr = sn->addr; in print_src_node()
665 print_addr(&aw, sn->af, opts & PF_OPT_VERBOSE2); in print_src_node()
667 aw.v.a.addr = sn->raddr; in print_src_node()
668 print_addr(&aw, sn->af, opts & PF_OPT_VERBOSE2); in print_src_node()
669 printf(" ( states %u, connections %u, rate %u.%u/%us )\n", sn->states, in print_src_node()
670 sn->conn, sn->conn_rate.count / 1000, in print_src_node()
671 (sn->conn_rate.count % 1000) / 100, sn->conn_rate.seconds); in print_src_node()
673 sec = sn->creation % 60; in print_src_node()
674 sn->creation /= 60; in print_src_node()
675 min = sn->creation % 60; in print_src_node()
676 sn->creation /= 60; in print_src_node()
678 sn->creation, min, sec); in print_src_node()
679 if (sn->states == 0) { in print_src_node()
680 sec = sn->expire % 60; in print_src_node()
681 sn->expire /= 60; in print_src_node()
682 min = sn->expire % 60; in print_src_node()
683 sn->expire /= 60; in print_src_node()
685 sn->expire, min, sec); in print_src_node()
688 sn->packets[0] + sn->packets[1], in print_src_node()
689 sn->bytes[0] + sn->bytes[1]); in print_src_node()
690 switch (sn->ruletype) { in print_src_node()
692 if (sn->rule != -1) in print_src_node()
693 printf(", nat rule %u", sn->rule); in print_src_node()
696 if (sn->rule != -1) in print_src_node()
697 printf(", rdr rule %u", sn->rule); in print_src_node()
701 if (sn->rule != -1) in print_src_node()
702 printf(", filter rule %u", sn->rule); in print_src_node()