Searched refs:icmpstat (Results 1 - 6 of 6) sorted by last modified time

/freebsd-11-stable/usr.bin/netstat/
H A Dinet.c1218 struct icmpstat icmpstat; local
1222 if (fetch_stats("net.inet.icmp.stats", off, &icmpstat,
1223 sizeof(icmpstat), kread_counters) != 0)
1229 #define p(f, m) if (icmpstat.f || sflag <= 1) \
1230 xo_emit(m, icmpstat.f, plural(icmpstat.f))
1231 #define p1a(f, m) if (icmpstat.f || sflag <= 1) \
1232 xo_emit(m, icmpstat.f)
1233 #define p2(f, m) if (icmpstat
[all...]
/freebsd-11-stable/sys/netinet/
H A Dip_icmp.c95 VNET_PCPUSTAT_DEFINE(struct icmpstat, icmpstat);
96 VNET_PCPUSTAT_SYSINIT(icmpstat); variable
97 SYSCTL_VNET_PCPUSTAT(_net_inet_icmp, ICMPCTL_STATS, stats, struct icmpstat,
98 icmpstat, "ICMP statistics (struct icmpstat, netinet/icmp_var.h)");
101 VNET_PCPUSTAT_SYSUNINIT(icmpstat); variable
174 * Kernel module interface for updating icmpstat. The argument is an index
175 * into icmpstat treated as an array of u_long. While this encodes the
176 * general layout of icmpstat int
[all...]
H A Dicmp_var.h41 struct icmpstat { struct
63 VNET_PCPUSTAT_DECLARE(struct icmpstat, icmpstat);
69 VNET_PCPUSTAT_ADD(struct icmpstat, icmpstat, name, (val))
77 kmod_icmpstat_inc(offsetof(struct icmpstat, name) / sizeof(uint64_t))
/freebsd-11-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-11-stable/release/picobsd/tinyware/ns/
H A Dns.c655 struct icmpstat s;
661 len = sizeof(struct icmpstat);
/freebsd-11-stable/usr.bin/systat/
H A Dicmp.c60 static struct icmpstat icmpstat, initstat, oldstat; variable in typeref:struct:icmpstat
133 domode(struct icmpstat *ret)
135 const struct icmpstat *sub;
150 *ret = icmpstat;
153 #define DO(stat) ret->stat = (icmpstat.stat - sub->stat) / divisor
176 struct icmpstat stats;
231 error("sysctl getting icmpstat size failed");
234 if (len > sizeof icmpstat) {
235 error("icmpstat structur
[all...]

Completed in 105 milliseconds