ip6stat
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_badvers++;
ip6stat.ip6s_exthdrtoolong++; \
ip6stat.ip6s_exthdrtoolong++; \
ip6stat.ip6s_exthdrtoolong++; \
ip6stat.ip6s_tooshort++; \
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_fragments++;
ip6stat.ip6s_reassembled++;
ip6stat.ip6s_fragdropped++;
ip6stat.ip6s_fragtimeout++;
ip6stat.ip6s_fragoverflow++;
ip6stat.ip6s_fragdropped++;
ip6stat.ip6s_delivered--;
ip6stat.ip6s_sources_none++;
ip6stat.ip6s_sources_sameif[best_scope]++;
ip6stat.ip6s_sources_otherif[best_scope]++;
ip6stat.ip6s_sources_samescope[best_scope]++;
ip6stat.ip6s_sources_otherscope[best_scope]++;
ip6stat.ip6s_sources_deprecated[best_scope]++;
ip6stat.ip6s_nogif++;
ip6stat.ip6s_nogif++;
&ip6stat, ip6stat, "IP stats");
ip6stat.ip6s_cantforward++;
ip6stat.ip6s_noroute++;
ip6stat.ip6s_noroute++;
ip6stat.ip6s_cantforward++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_cantforward++;
ip6stat.ip6s_forward++;
ip6stat.ip6s_redirectsent++;
ip6stat.ip6s_badoptions++;
ip6stat.ip6s_badoptions++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_tooshort++;
struct ip6stat ip6stat;
ip6stat.ip6s_mext2m++;
ip6stat.ip6s_mext1++;
#define M2MMAX NELEM(ip6stat.ip6s_m2m)
ip6stat.ip6s_m2m[loif->if_index]++; /* XXX */
ip6stat.ip6s_m2m[m->m_pkthdr.rcvif->if_index]++;
ip6stat.ip6s_m2m[0]++;
ip6stat.ip6s_m1++;
ip6stat.ip6s_total++;
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_badvers++;
ip6stat.ip6s_nxthist[ip6->ip6_nxt]++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_forward_cachehit++;
ip6stat.ip6s_forward_cachemiss++;
ip6stat.ip6s_cantforward++;
ip6stat.ip6s_badoptions++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_cantforward++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_delivered++;
ip6stat.ip6s_toomanyhdr++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_toomanyhdr++;
ip6stat.ip6s_badoptions++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_badoptions++;
ip6stat.ip6s_badoptions++;
ip6stat.ip6s_badoptions++;
ip6stat.ip6s_toosmall++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_cantforward++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_localout++;
ip6stat.ip6s_noroute++;
ip6stat.ip6s_noroute++;
ip6stat.ip6s_badscope++;
ip6stat.ip6s_noroute++;
ip6stat.ip6s_noroute++;
ip6stat.ip6s_odropped++;
ip6stat.ip6s_odropped++;
ip6stat.ip6s_odropped++;
ip6stat.ip6s_ofragments++;
ip6stat.ip6s_fragmented++;
extern struct ip6stat ip6stat; /* statistics */
ip6stat.ip6s_delivered--;
ip6stat.ip6s_tooshort++;
ip6stat.ip6s_badoptions++;
struct ip6stat ip6stat;
len = sizeof ip6stat;
memset(&ip6stat, 0, len);
if (sysctl(mib, 4, &ip6stat, &len, NULL, 0) < 0)
#define p(f, m) if (ip6stat.f || sflag <= 1) \
printf(m, (unsigned long long)ip6stat.f, plural(ip6stat.f))
#define p1a(f, m) if (ip6stat.f || sflag <= 1) \
printf(m, (unsigned long long)ip6stat.f)
if (ip6stat.ip6s_nxthist[i] != 0) {
(unsigned long long)ip6stat.ip6s_nxthist[i]);
printf("\t\t%llu one mbuf\n", (unsigned long long)ip6stat.ip6s_m1);
if (ip6stat.ip6s_m2m[i] != 0) {
(unsigned long long)ip6stat.ip6s_m2m[i]);
(unsigned long long)ip6stat.ip6s_mext1);
(unsigned long long)ip6stat.ip6s_mext2m);
(unsigned long long)ip6stat.s, i);\
if (ip6stat.ip6s_sources_sameif[i]) {
if (ip6stat.ip6s_sources_otherif[i]) {
if (ip6stat.ip6s_sources_samescope[i]) {
if (ip6stat.ip6s_sources_otherscope[i]) {
if (ip6stat.ip6s_sources_deprecated[i]) {
printf(m, (unsigned long long)ip6stat.f)
domode(struct ip6stat *ret)
const struct ip6stat *sub;
struct ip6stat stats;
static struct ip6stat curstat, initstat, oldstat;