Searched refs:icmp6stat (Results 1 – 4 of 4) sorted by relevance
/freebsd/usr.bin/systat/ |
H A D | icmp6.c | 55 static struct icmp6stat icmp6stat, initstat, oldstat; variable 129 domode(struct icmp6stat *ret) in domode() 131 const struct icmp6stat *sub; in domode() 146 *ret = icmp6stat; in domode() 149 #define DO(stat) ret->stat = (icmp6stat.stat - sub->stat) / divisor in domode() 170 struct icmp6stat stats; in showicmp6() 228 if (len > sizeof icmp6stat) { in initicmp6() 264 oldstat = icmp6stat; in fetchicmp6() 269 len = sizeof icmp6stat; in fetchicmp6() 271 if (sysctl(name, 4, &icmp6stat, &len, 0, 0) < 0) in fetchicmp6()
|
/freebsd/usr.bin/netstat/ |
H A D | inet6.c | 941 struct icmp6stat icmp6stat; in icmp6_stats() local 944 if (fetch_stats("net.inet6.icmp6.stats", off, &icmp6stat, in icmp6_stats() 945 sizeof(icmp6stat), kread_counters) != 0) in icmp6_stats() 951 #define p(f, m) if (icmp6stat.f || sflag <= 1) \ in icmp6_stats() 952 xo_emit(m, (uintmax_t)icmp6stat.f, plural(icmp6stat.f)) in icmp6_stats() 953 #define p_5(f, m) if (icmp6stat.f || sflag <= 1) \ in icmp6_stats() 954 xo_emit(m, (uintmax_t)icmp6stat.f) in icmp6_stats() 962 #define NELEM (int)(sizeof(icmp6stat.icp6s_outhist)/sizeof(icmp6stat.icp6s_outhist[0])) in icmp6_stats() 964 if (icmp6stat.icp6s_outhist[i] != 0) { in icmp6_stats() 973 (uintmax_t)icmp6stat.icp6s_outhist[i]); in icmp6_stats() [all …]
|
/freebsd/sys/netinet/ |
H A D | icmp6.h | 586 struct icmp6stat { struct 641 VNET_PCPUSTAT_DECLARE(struct icmp6stat, icmp6stat); argument 649 VNET_PCPUSTAT_ADD(struct icmp6stat, icmp6stat, name, (val)); \ 655 VNET_PCPUSTAT_ADD(struct icmp6stat, icmp6stat, name[type], 1); \ 666 offsetof(struct icmp6stat, name) / sizeof(uint64_t)); \
|
/freebsd/sys/netinet6/ |
H A D | icmp6.c | 115 VNET_PCPUSTAT_DEFINE(struct icmp6stat, icmp6stat); 116 VNET_PCPUSTAT_SYSINIT(icmp6stat); 118 struct icmp6stat, icmp6stat, 122 VNET_PCPUSTAT_SYSUNINIT(icmp6stat); 174 counter_u64_add(VNET(icmp6stat)[statnum], 1); in kmod_icmp6stat_inc()
|