Searched refs:icmpstat (Results 1 – 9 of 9) sorted by relevance
| /NextBSD/contrib/bsnmp/snmp_mibII/ |
| HD | mibII_ip.c | 43 static struct icmpstat icmpstat; variable 72 len = sizeof(icmpstat); in fetch_ipstat() 73 if (sysctlbyname("net.inet.icmp.stats", &icmpstat, &len, NULL, 0) == -1) { in fetch_ipstat() 77 if (len != sizeof(icmpstat)) { in fetch_ipstat() 376 value->v.integer += icmpstat.icps_inhist[i]; in op_icmpstat() 377 value->v.integer += icmpstat.icps_tooshort + in op_icmpstat() 378 icmpstat.icps_checksum; in op_icmpstat() 383 value->v.integer = icmpstat.icps_tooshort + in op_icmpstat() 384 icmpstat.icps_checksum + in op_icmpstat() 385 icmpstat.icps_badlen + in op_icmpstat() [all …]
|
| /NextBSD/usr.bin/systat/ |
| HD | icmp.c | 60 static struct icmpstat icmpstat, initstat, oldstat; variable 133 domode(struct icmpstat *ret) in domode() 135 const struct icmpstat *sub; in domode() 150 *ret = icmpstat; in domode() 153 #define DO(stat) ret->stat = (icmpstat.stat - sub->stat) / divisor in domode() 176 struct icmpstat stats; in showicmp() 234 if (len > sizeof icmpstat) { in initicmp() 270 oldstat = icmpstat; in fetchicmp() 275 len = sizeof icmpstat; in fetchicmp() 277 if (sysctl(name, 4, &icmpstat, &len, 0, 0) < 0) in fetchicmp()
|
| /NextBSD/sys/netinet/ |
| HD | icmp_var.h | 41 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))
|
| HD | ip_icmp.c | 94 VNET_PCPUSTAT_DEFINE(struct icmpstat, icmpstat); 95 VNET_PCPUSTAT_SYSINIT(icmpstat); 96 SYSCTL_VNET_PCPUSTAT(_net_inet_icmp, ICMPCTL_STATS, stats, struct icmpstat, 97 icmpstat, "ICMP statistics (struct icmpstat, netinet/icmp_var.h)"); 100 VNET_PCPUSTAT_SYSUNINIT(icmpstat); 178 counter_u64_add(VNET(icmpstat)[statnum], 1); in kmod_icmpstat_inc()
|
| /NextBSD/cddl/contrib/dtracetoolkit/Examples/ |
| HD | icmpstat_example.txt | 1 The following is a demonstration of the icmpstat.d script, 6 # icmpstat.d 27 The icmpstat.d is a simple demonstration of tracing ICMP activity. It may
|
| /NextBSD/usr.bin/netstat/ |
| HD | inet.c | 1160 struct icmpstat icmpstat; in icmp_stats() local 1164 if (fetch_stats("net.inet.icmp.stats", off, &icmpstat, in icmp_stats() 1165 sizeof(icmpstat), kread_counters) != 0) in icmp_stats() 1171 #define p(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats() 1172 xo_emit(m, icmpstat.f, plural(icmpstat.f)) in icmp_stats() 1173 #define p1a(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats() 1174 xo_emit(m, icmpstat.f) in icmp_stats() 1175 #define p2(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats() 1176 xo_emit(m, icmpstat.f, plurales(icmpstat.f)) in icmp_stats() 1184 if (icmpstat.icps_outhist[i] != 0) { in icmp_stats() [all …]
|
| /NextBSD/release/picobsd/tinyware/ns/ |
| HD | ns.c | 655 struct icmpstat s; in print_icmp_stats() 661 len = sizeof(struct icmpstat); in print_icmp_stats()
|
| /NextBSD/cddl/contrib/dtracetoolkit/Docs/ |
| D | Index | 93 icmpstat.d print ICMP statistics
|
| HD | Contents | 93 icmpstat.d print ICMP statistics
|