Lines Matching refs:cntr
2393 struct buf_pr *bp, struct ip_fw_rule *rule, struct ip_fw_bcounter *cntr) in show_static_rule() argument
2416 if (cntr != NULL) { in show_static_rule()
2419 pr_u64(bp, &cntr->pcnt, fo->pcwidth); in show_static_rule()
2420 pr_u64(bp, &cntr->bcnt, fo->bcwidth); in show_static_rule()
2425 bprintf(bp, "%10u ", cntr->timestamp); in show_static_rule()
2435 if (cntr->timestamp > 0) { in show_static_rule()
2436 t = _long_to_time(cntr->timestamp); in show_static_rule()
2858 struct ip_fw_bcounter *cntr; in prepare_format_opts() local
2866 cntr = (struct ip_fw_bcounter *)(rtlv + 1); in prepare_format_opts()
2867 r = (struct ip_fw_rule *)((caddr_t)cntr + cntr->size); in prepare_format_opts()
2873 width = pr_u64(NULL, &cntr->pcnt, 0); in prepare_format_opts()
2878 width = pr_u64(NULL, &cntr->bcnt, 0); in prepare_format_opts()
2897 struct ip_fw_bcounter *cntr; in list_static_range() local
2903 cntr = (struct ip_fw_bcounter *)(rtlv + 1); in list_static_range()
2904 r = (struct ip_fw_rule *)((caddr_t)cntr + cntr->size); in list_static_range()
2906 cntr = NULL; in list_static_range()
2914 show_static_rule(co, fo, bp, r, cntr); in list_static_range()