Lines Matching refs:stat
46 print_stats(struct flowtable_stat *stat)
49 #define p(f, m) if (stat->f || sflag <= 1) \
50 printf(m, (uintmax_t)stat->f, plural(stat->f))
51 #define p2(f, m) if (stat->f || sflag <= 1) \
52 printf(m, (uintmax_t)stat->f, plurales(stat->f))
71 struct flowtable_stat stat;
76 if (fetch_stats("net.flowtable.ip4.stat", 0, &stat,
77 sizeof(stat), NULL) == 0) {
79 print_stats(&stat);
82 if (fetch_stats("net.flowtable.ip6.stat", 0, &stat,
83 sizeof(stat), NULL) == 0) {
85 print_stats(&stat);