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()
74 if (sysctlbyname("net.inet.icmp.stats", &icmpstat, &len, NULL, 0) == -1) { in fetch_ipstat()
78 if (len != sizeof(icmpstat)) { in fetch_ipstat()
388 value->v.integer += icmpstat.icps_inhist[i]; in op_icmpstat()
389 value->v.integer += icmpstat.icps_tooshort + in op_icmpstat()
390 icmpstat.icps_checksum; in op_icmpstat()
395 value->v.integer = icmpstat.icps_tooshort + in op_icmpstat()
396 icmpstat.icps_checksum + in op_icmpstat()
397 icmpstat.icps_badlen + 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.c1193 struct icmpstat icmpstat; in icmp_stats() local
1197 if (fetch_stats("net.inet.icmp.stats", off, &icmpstat, in icmp_stats()
1198 sizeof(icmpstat), kread_counters) != 0) in icmp_stats()
1204 #define p(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats()
1205 xo_emit(m, icmpstat.f, plural(icmpstat.f)) in icmp_stats()
1206 #define p1a(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats()
1207 xo_emit(m, icmpstat.f) in icmp_stats()
1208 #define p2(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats()
1209 xo_emit(m, icmpstat.f, plurales(icmpstat.f)) in icmp_stats()
1217 if (icmpstat.icps_outhist[i] != 0) { in icmp_stats()
[all …]