Searched refs:ipstat (Results 1 – 8 of 8) sorted by relevance
| /freebsd-13.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-13.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 | 197 VNET_PCPUSTAT_DEFINE(struct ipstat, ipstat); 198 VNET_PCPUSTAT_SYSINIT(ipstat); 199 SYSCTL_VNET_PCPUSTAT(_net_inet_ip, IPCTL_STATS, stats, struct ipstat, ipstat, 203 VNET_PCPUSTAT_SYSUNINIT(ipstat); 214 counter_u64_add(VNET(ipstat)[statnum], 1); in kmod_ipstat_inc() 221 counter_u64_add(VNET(ipstat)[statnum], -1); in kmod_ipstat_dec()
|
| /freebsd-13.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-13.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-13.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() 281 struct ipstat old, new; in ATF_TC_BODY() 331 struct ipstat old, new; in ATF_TC_BODY()
|
| /freebsd-13.1/usr.bin/netstat/ |
| H A D | inet.c | 1020 struct ipstat ipstat; in ip_stats() local 1022 if (fetch_stats("net.inet.ip.stats", off, &ipstat, in ip_stats() 1023 sizeof(ipstat), kread_counters) != 0) in ip_stats() 1029 #define p(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1030 xo_emit(m, (uintmax_t )ipstat.f, plural(ipstat.f)) in ip_stats() 1031 #define p1a(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1032 xo_emit(m, (uintmax_t )ipstat.f) in ip_stats() 1068 if (ipstat.ips_forward || sflag <= 1) in ip_stats()
|
| /freebsd-13.1/usr.bin/systat/ |
| H A D | ip.c | 66 struct ipstat i;
|