Searched refs:icmpstat (Results 1 - 5 of 5) sorted by relevance

/freebsd-13-stable/sys/netinet/
H A Dicmp_var.h42 struct icmpstat { struct
64 VNET_PCPUSTAT_DECLARE(struct icmpstat, icmpstat);
70 VNET_PCPUSTAT_ADD(struct icmpstat, icmpstat, name, (val))
78 kmod_icmpstat_inc(offsetof(struct icmpstat, name) / sizeof(uint64_t))
H A Dip_icmp.c99 VNET_PCPUSTAT_DEFINE(struct icmpstat, icmpstat);
100 VNET_PCPUSTAT_SYSINIT(icmpstat); variable
101 SYSCTL_VNET_PCPUSTAT(_net_inet_icmp, ICMPCTL_STATS, stats, struct icmpstat,
102 icmpstat, "ICMP statistics (struct icmpstat, netinet/icmp_var.h)");
105 VNET_PCPUSTAT_SYSUNINIT(icmpstat); variable
186 * Kernel module interface for updating icmpstat. The argument is an index
187 * into icmpstat treated as an array of u_long. While this encodes the
188 * general layout of icmpstat int
[all...]
/freebsd-13-stable/contrib/bsnmp/snmp_mibII/
H A DmibII_ip.c43 static struct icmpstat icmpstat; variable in typeref:struct:icmpstat
72 len = sizeof(icmpstat);
73 if (sysctlbyname("net.inet.icmp.stats", &icmpstat, &len, NULL, 0) == -1) {
77 if (len != sizeof(icmpstat)) {
376 value->v.integer += icmpstat.icps_inhist[i];
377 value->v.integer += icmpstat.icps_tooshort +
378 icmpstat.icps_checksum;
383 value->v.integer = icmpstat.icps_tooshort +
384 icmpstat
[all...]
/freebsd-13-stable/usr.bin/systat/
H A Dicmp.c62 static struct icmpstat icmpstat, initstat, oldstat; variable in typeref:struct:icmpstat
135 domode(struct icmpstat *ret)
137 const struct icmpstat *sub;
152 *ret = icmpstat;
155 #define DO(stat) ret->stat = (icmpstat.stat - sub->stat) / divisor
178 struct icmpstat stats;
233 error("sysctl getting icmpstat size failed");
236 if (len > sizeof icmpstat) {
237 error("icmpstat structur
[all...]
/freebsd-13-stable/usr.bin/netstat/
H A Dinet.c1181 struct icmpstat icmpstat; local
1185 if (fetch_stats("net.inet.icmp.stats", off, &icmpstat,
1186 sizeof(icmpstat), kread_counters) != 0)
1192 #define p(f, m) if (icmpstat.f || sflag <= 1) \
1193 xo_emit(m, icmpstat.f, plural(icmpstat.f))
1194 #define p1a(f, m) if (icmpstat.f || sflag <= 1) \
1195 xo_emit(m, icmpstat.f)
1196 #define p2(f, m) if (icmpstat
[all...]

Completed in 91 milliseconds