Lines Matching defs:ipsecstat
157 static void print_ipsecstats(const struct ipsecstat *ipsecstat);
160 print_ipsecstats(const struct ipsecstat *ipsecstat)
164 #define p(f, m) if (ipsecstat->f || sflag <= 1) \
165 xo_emit(m, (uintmax_t)ipsecstat->f, plural(ipsecstat->f))
166 #define p2(f, m) if (ipsecstat->f || sflag <= 1) \
167 xo_emit(m, (uintmax_t)ipsecstat->f, plurales(ipsecstat->f))
203 struct ipsecstat ipsecstat;
206 if (fetch_stats("net.inet6.ipsec6.ipsecstats", off,&ipsecstat,
207 sizeof(ipsecstat), kread_counters) != 0)
210 if (fetch_stats("net.inet.ipsec.ipsecstats", off, &ipsecstat,
211 sizeof(ipsecstat), kread_counters) != 0)
217 print_ipsecstats(&ipsecstat);