ipcompstat
VNET_PCPUSTAT_DECLARE(struct ipcompstat, ipcompstat);
VNET_PCPUSTAT_ADD(struct ipcompstat, ipcompstat, name, (val)); \
VNET_PCPUSTAT_ADD(struct ipcompstat, ipcompstat, name[type], \
VNET_PCPUSTAT_DEFINE(struct ipcompstat, ipcompstat);
VNET_PCPUSTAT_SYSINIT(ipcompstat);
VNET_PCPUSTAT_SYSUNINIT(ipcompstat);
struct ipcompstat, ipcompstat,
static void print_ipcompstats(const struct ipcompstat *ipcompstat);
print_ipcompstats(const struct ipcompstat *ipcompstat)
#define p(f, n, m) if (ipcompstat->f || sflag <= 1) \
(uintmax_t)ipcompstat->f, plural(ipcompstat->f))
hist(ipcompstat->ipcomps_hist, ipsec_compnames,
struct ipcompstat ipcompstat;
if (fetch_stats("net.inet.ipcomp.stats", off, &ipcompstat,
sizeof(ipcompstat), kread_counters) != 0)
print_ipcompstats(&ipcompstat);