Searched refs:ipstat (Results 1 – 9 of 9) sorted by relevance
| /freebsd-12.1/contrib/bsnmp/snmp_mibII/ |
| H A D | mibII_ip.c | 41 static struct ipstat ipstat; variable 56 len = sizeof(ipstat); in fetch_ipstat() 61 if (len != sizeof(ipstat)) { in fetch_ipstat() 269 value->v.uint32 = ipstat.ips_total; in op_ipstat() 273 value->v.uint32 = ipstat.ips_badsum + ipstat.ips_tooshort in op_ipstat() 274 + ipstat.ips_toosmall + ipstat.ips_badhlen in op_ipstat() 275 + ipstat.ips_badlen + ipstat.ips_badvers + in op_ipstat() 276 + ipstat.ips_toolong; in op_ipstat() 284 value->v.uint32 = ipstat.ips_forward; in op_ipstat() 288 value->v.uint32 = ipstat.ips_noproto; in op_ipstat() [all …]
|
| /freebsd-12.1/sys/netinet/ |
| H A D | ip_var.h | 103 struct ipstat { struct 140 VNET_PCPUSTAT_DECLARE(struct ipstat, ipstat); argument 146 VNET_PCPUSTAT_ADD(struct ipstat, ipstat, name, (val)) 156 kmod_ipstat_inc(offsetof(struct ipstat, name) / sizeof(uint64_t)) 159 kmod_ipstat_dec(offsetof(struct ipstat, name) / sizeof(uint64_t))
|
| H A D | ip_input.c | 192 VNET_PCPUSTAT_DEFINE(struct ipstat, ipstat); 193 VNET_PCPUSTAT_SYSINIT(ipstat); 194 SYSCTL_VNET_PCPUSTAT(_net_inet_ip, IPCTL_STATS, stats, struct ipstat, ipstat, 198 VNET_PCPUSTAT_SYSUNINIT(ipstat); 209 counter_u64_add(VNET(ipstat)[statnum], 1); in kmod_ipstat_inc() 216 counter_u64_add(VNET(ipstat)[statnum], -1); in kmod_ipstat_dec()
|
| /freebsd-12.1/contrib/netbsd-tests/net/icmp/ |
| H A D | t_ping.c | 343 uint64_t ipstat[IP_NSTATS]; in ATF_TC_BODY() local 356 arglen = sizeof(ipstat); in ATF_TC_BODY() 357 RL(rump_sys___sysctl(mib, 4, &ipstat, &arglen, in ATF_TC_BODY() 359 if (loop == 0 && ipstat[IP_STAT_TOOLONG] != 0) in ATF_TC_BODY() 361 if (ipstat[IP_STAT_TOOLONG]) in ATF_TC_BODY()
|
| /freebsd-12.1/contrib/unbound/compat/ |
| H A D | getentropy_osx.c | 223 struct ipstat ipstat; in getentropy_fallback() local 268 ii = sizeof(ipstat); in getentropy_fallback() 270 &ipstat, &ii, NULL, 0) == -1, ipstat); in getentropy_fallback()
|
| /freebsd-12.1/usr.bin/netstat/ |
| H A D | inet.c | 947 struct ipstat ipstat; in ip_stats() local 949 if (fetch_stats("net.inet.ip.stats", off, &ipstat, in ip_stats() 950 sizeof(ipstat), kread_counters) != 0) in ip_stats() 956 #define p(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 957 xo_emit(m, (uintmax_t )ipstat.f, plural(ipstat.f)) in ip_stats() 958 #define p1a(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 959 xo_emit(m, (uintmax_t )ipstat.f) in ip_stats() 995 if (ipstat.ips_forward || sflag <= 1) in ip_stats()
|
| /freebsd-12.1/tests/sys/netinet/ |
| H A D | ip_reass_test.c | 171 get_ipstat(struct ipstat *stat) in get_ipstat() 201 struct ipstat old, new; in ATF_TC_BODY() 279 struct ipstat old, new; in ATF_TC_BODY() 329 struct ipstat old, new; in ATF_TC_BODY()
|
| /freebsd-12.1/release/picobsd/tinyware/ns/ |
| H A D | ns.c | 436 struct ipstat s; in print_ip_stats() 446 len = sizeof(struct ipstat); in print_ip_stats()
|
| /freebsd-12.1/usr.bin/systat/ |
| H A D | ip.c | 66 struct ipstat i;
|