ahstat
VNET_PCPUSTAT_DECLARE(struct ahstat, ahstat);
VNET_PCPUSTAT_ADD(struct ahstat, ahstat, name, (val)); \
VNET_PCPUSTAT_ADD(struct ahstat, ahstat, name[type], 1); \
SYSCTL_VNET_PCPUSTAT(_net_inet_ah, IPSECCTL_STATS, stats, struct ahstat,
ahstat, "AH statistics (struct ahstat, netipsec/ah_var.h)");
VNET_PCPUSTAT_DEFINE(struct ahstat, ahstat);
VNET_PCPUSTAT_SYSINIT(ahstat);
VNET_PCPUSTAT_SYSUNINIT(ahstat);
struct ahstat ahs;
static void print_ahstats(const struct ahstat *ahstat);
print_ahstats(const struct ahstat *ahstat)
#define p(f, n, m) if (ahstat->f || sflag <= 1) \
(uintmax_t)ahstat->f, plural(ahstat->f))
hist(ahstat->ahs_hist, ipsec_ahnames,
struct ahstat ahstat;
if (fetch_stats("net.inet.ah.stats", off, &ahstat,
sizeof(ahstat), kread_counters) != 0)
print_ahstats(&ahstat);