Home
last modified time | relevance | path

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

/freebsd/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/sys/netinet/
H A Dicmp_var.h39 struct icmpstat { struct
62 VNET_PCPUSTAT_DECLARE(struct icmpstat, icmpstat); argument
70 VNET_PCPUSTAT_ADD(struct icmpstat, icmpstat, name, (val)); \
77 VNET_PCPUSTAT_ADD(struct icmpstat, icmpstat, name[type], 1); \
88 offsetof(struct icmpstat, name) / sizeof(uint64_t)); \
H A Dip_icmp.c107 VNET_PCPUSTAT_DEFINE(struct icmpstat, icmpstat);
108 VNET_PCPUSTAT_SYSINIT(icmpstat);
109 SYSCTL_VNET_PCPUSTAT(_net_inet_icmp, ICMPCTL_STATS, stats, struct icmpstat,
110 icmpstat, "ICMP statistics (struct icmpstat, netinet/icmp_var.h)");
113 VNET_PCPUSTAT_SYSUNINIT(icmpstat);
202 counter_u64_add(VNET(icmpstat)[statnum], 1); in kmod_icmpstat_inc()
/freebsd/usr.bin/systat/
H A Dicmp.c56 static struct icmpstat icmpstat, initstat, oldstat; variable
129 domode(struct icmpstat *ret) in domode()
131 const struct icmpstat *sub; in domode()
146 *ret = icmpstat; in domode()
149 #define DO(stat) ret->stat = (icmpstat.stat - sub->stat) / divisor in domode()
172 struct icmpstat stats; in showicmp()
230 if (len > sizeof icmpstat) { in initicmp()
266 oldstat = icmpstat; in fetchicmp()
271 len = sizeof icmpstat; in fetchicmp()
273 if (sysctl(name, 4, &icmpstat, &len, 0, 0) < 0) in fetchicmp()
/freebsd/usr.bin/netstat/
H A Dinet.c1190 struct icmpstat icmpstat; in icmp_stats() local
1195 sizeof(icmpstat), kread_counters) != 0) in icmp_stats()
1201 #define p(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats()
1202 xo_emit(m, icmpstat.f, plural(icmpstat.f)) in icmp_stats()
1204 xo_emit(m, icmpstat.f) in icmp_stats()
1206 xo_emit(m, icmpstat.f, plurales(icmpstat.f)) in icmp_stats()
1214 if (icmpstat.icps_outhist[i] != 0) { in icmp_stats()
1227 i, icmpstat.icps_outhist[i]); in icmp_stats()
1248 if (icmpstat.icps_inhist[i] != 0) { in icmp_stats()
1258 icmpstat.icps_inhist[i]); in icmp_stats()
[all …]