rip6stat
struct rip6stat, rip6stat,
VNET_PCPUSTAT_DEFINE(struct rip6stat, rip6stat);
VNET_PCPUSTAT_SYSINIT(rip6stat);
VNET_PCPUSTAT_SYSUNINIT(rip6stat);
VNET_PCPUSTAT_DECLARE(struct rip6stat, rip6stat);
VNET_PCPUSTAT_ADD(struct rip6stat, rip6stat, name, (val))
struct rip6stat rip6stat;
if (fetch_stats("net.inet6.ip6.rip6stats", off, &rip6stat,
sizeof(rip6stat), kread_counters) != 0)
#define p(f, m) if (rip6stat.f || sflag <= 1) \
xo_emit(m, (uintmax_t)rip6stat.f, plural(rip6stat.f))
delivered = rip6stat.rip6s_ipackets -
rip6stat.rip6s_badsum -
rip6stat.rip6s_nosock -
rip6stat.rip6s_nosockmcast -
rip6stat.rip6s_fullsock;