Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/bsnmp/snmp_mibII/
H A DmibII_ip.c43 static struct icmpstat icmpstat; variable
73 len = sizeof(icmpstat); in fetch_ipstat()
78 if (len != sizeof(icmpstat)) { in fetch_ipstat()
390 icmpstat.icps_checksum; in op_icmpstat()
396 icmpstat.icps_checksum + in op_icmpstat()
397 icmpstat.icps_badlen + in op_icmpstat()
398 icmpstat.icps_badcode + in op_icmpstat()
399 icmpstat.icps_bmcastecho + in op_icmpstat()
400 icmpstat.icps_bmcasttstamp; in op_icmpstat()
452 icmpstat.icps_noroute; in op_icmpstat()
[all …]
/freebsd-14.2/usr.bin/systat/
H A Dicmp.c59 static struct icmpstat icmpstat, initstat, oldstat; variable
132 domode(struct icmpstat *ret) in domode()
134 const struct icmpstat *sub; in domode()
149 *ret = icmpstat; in domode()
152 #define DO(stat) ret->stat = (icmpstat.stat - sub->stat) / divisor in domode()
175 struct icmpstat stats; in showicmp()
233 if (len > sizeof icmpstat) { in initicmp()
269 oldstat = icmpstat; in fetchicmp()
274 len = sizeof icmpstat; in fetchicmp()
276 if (sysctl(name, 4, &icmpstat, &len, 0, 0) < 0) in fetchicmp()
/freebsd-14.2/sys/netinet/
H A Dicmp_var.h41 struct icmpstat { struct
63 VNET_PCPUSTAT_DECLARE(struct icmpstat, icmpstat); argument
69 VNET_PCPUSTAT_ADD(struct icmpstat, icmpstat, name, (val))
77 kmod_icmpstat_inc(offsetof(struct icmpstat, name) / sizeof(uint64_t))
H A Dip_icmp.c109 VNET_PCPUSTAT_DEFINE(struct icmpstat, icmpstat);
110 VNET_PCPUSTAT_SYSINIT(icmpstat);
111 SYSCTL_VNET_PCPUSTAT(_net_inet_icmp, ICMPCTL_STATS, stats, struct icmpstat,
112 icmpstat, "ICMP statistics (struct icmpstat, netinet/icmp_var.h)");
115 VNET_PCPUSTAT_SYSUNINIT(icmpstat);
204 counter_u64_add(VNET(icmpstat)[statnum], 1); in kmod_icmpstat_inc()
/freebsd-14.2/usr.bin/netstat/
H A Dinet.c1199 struct icmpstat icmpstat; in icmp_stats() local
1204 sizeof(icmpstat), kread_counters) != 0) in icmp_stats()
1210 #define p(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats()
1211 xo_emit(m, icmpstat.f, plural(icmpstat.f)) in icmp_stats()
1213 xo_emit(m, icmpstat.f) in icmp_stats()
1215 xo_emit(m, icmpstat.f, plurales(icmpstat.f)) in icmp_stats()
1223 if (icmpstat.icps_outhist[i] != 0) { in icmp_stats()
1236 i, icmpstat.icps_outhist[i]); in icmp_stats()
1257 if (icmpstat.icps_inhist[i] != 0) { in icmp_stats()
1267 icmpstat.icps_inhist[i]); in icmp_stats()
[all …]