Searched refs:icmpstat (Results 1 – 9 of 9) sorted by relevance
| /freebsd-10-stable/contrib/bsnmp/snmp_mibII/ |
| D | 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 …]
|
| /freebsd-10-stable/usr.bin/systat/ |
| D | 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()
|
| /freebsd-10-stable/sys/netinet/ |
| D | 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))
|
| D | ip_icmp.c | 90 VNET_PCPUSTAT_DEFINE(struct icmpstat, icmpstat); 91 VNET_PCPUSTAT_SYSINIT(icmpstat); 92 SYSCTL_VNET_PCPUSTAT(_net_inet_icmp, ICMPCTL_STATS, stats, struct icmpstat, 93 icmpstat, "ICMP statistics (struct icmpstat, netinet/icmp_var.h)"); 96 VNET_PCPUSTAT_SYSUNINIT(icmpstat); 210 counter_u64_add(VNET(icmpstat)[statnum], 1); in kmod_icmpstat_inc()
|
| /freebsd-10-stable/cddl/contrib/dtracetoolkit/Examples/ |
| D | 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
|
| /freebsd-10-stable/usr.bin/netstat/ |
| D | inet.c | 974 struct icmpstat icmpstat; in icmp_stats() local 978 if (fetch_stats("net.inet.icmp.stats", off, &icmpstat, in icmp_stats() 979 sizeof(icmpstat), kread_counters) != 0) in icmp_stats() 984 #define p(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats() 985 printf(m, icmpstat.f, plural(icmpstat.f)) in icmp_stats() 986 #define p1a(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats() 987 printf(m, icmpstat.f) in icmp_stats() 988 #define p2(f, m) if (icmpstat.f || sflag <= 1) \ in icmp_stats() 989 printf(m, icmpstat.f, plurales(icmpstat.f)) in icmp_stats() 995 if (icmpstat.icps_outhist[i] != 0) { in icmp_stats() [all …]
|
| /freebsd-10-stable/release/picobsd/tinyware/ns/ |
| D | ns.c | 655 struct icmpstat s; in print_icmp_stats() 661 len = sizeof(struct icmpstat); in print_icmp_stats()
|
| /freebsd-10-stable/cddl/contrib/dtracetoolkit/Docs/ |
| D | Contents | 93 icmpstat.d print ICMP statistics
|
| D | Index | 93 icmpstat.d print ICMP statistics
|