icmp6stat
icmp6stat.icp6s_checksum++;
icmp6stat.icp6s_pmtuchg++;
struct icmp6stat icmp6stat;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_badredirect++;
icmp6_errcount(&icmp6stat.icp6s_outerrhist, ND_REDIRECT, 0);
icmp6stat.icp6s_error++;
icmp6_errcount(&icmp6stat.icp6s_outerrhist, type, code);
icmp6stat.icp6s_outhist[ND_REDIRECT]++;
icmp6stat.icp6s_canterror++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_canterror++;
icmp6stat.icp6s_toofreq++;
icmp6stat.icp6s_outhist[type]++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_checksum++;
icmp6stat.icp6s_inhist[icmp6->icmp6_type]++;
icmp6stat.icp6s_reflect++;
icmp6stat.icp6s_outhist[ICMP6_ECHO_REPLY]++;
icmp6stat.icp6s_reflect++;
icmp6stat.icp6s_outhist[ICMP6_WRUREPLY]++;
icmp6stat.icp6s_badcode++;
icmp6stat.icp6s_badlen++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_tooshort++;
&icmp6stat, icmp6stat, "Stats");
extern struct icmp6stat icmp6stat;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_outhist[type]++;
icmp6stat.icp6s_nd_badopt++;
icmp6stat.icp6s_nd_toomanyopt++;
icmp6stat.icp6s_outhist[ND_NEIGHBOR_ADVERT]++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_badns++;
icmp6stat.icp6s_outhist[ND_NEIGHBOR_SOLICIT]++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_badna++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_badrs++;
icmp6stat.icp6s_tooshort++;
icmp6stat.icp6s_badra++;
icmp6stat.icp6s_outhist[type]++;
struct icmp6stat icmp6stat;
len = sizeof icmp6stat;
memset(&icmp6stat, 0, len);
if (sysctl(mib, 4, &icmp6stat, &len, NULL, 0) < 0)
#define p(f, m) if (icmp6stat.f || sflag <= 1) \
printf(m, (unsigned long long)icmp6stat.f, plural(icmp6stat.f))
#define p_5(f, m) printf(m, (unsigned long long)icmp6stat.f)
for (first = 1, i = 0; i < NELEM(icmp6stat.icp6s_outhist); i++)
if (icmp6stat.icp6s_outhist[i] != 0) {
(unsigned long long)icmp6stat.icp6s_outhist[i]);
for (first = 1, i = 0; i < NELEM(icmp6stat.icp6s_inhist); i++)
if (icmp6stat.icp6s_inhist[i] != 0) {
(unsigned long long)icmp6stat.icp6s_inhist[i]);
domode(struct icmp6stat *ret)
const struct icmp6stat *sub;
*ret = icmp6stat;
#define DO(stat) ret->stat = (icmp6stat.stat - sub->stat) / divisor
struct icmp6stat stats;
if (len > sizeof icmp6stat) {
oldstat = icmp6stat;
len = sizeof icmp6stat;
if (sysctl(name, 4, &icmp6stat, &len, 0, 0) < 0)
static struct icmp6stat icmp6stat, initstat, oldstat;