Searched refs:ipstat (Results 1 – 8 of 8) sorted by relevance
| /freebsd-14.2/contrib/bsnmp/snmp_mibII/ |
| H A D | mibII_ip.c | 41 static struct ipstat ipstat; variable 57 len = sizeof(ipstat); in fetch_ipstat() 62 if (len != sizeof(ipstat)) { in fetch_ipstat() 281 value->v.uint32 = ipstat.ips_total; in op_ipstat() 285 value->v.uint32 = ipstat.ips_badsum + ipstat.ips_tooshort in op_ipstat() 286 + ipstat.ips_toosmall + ipstat.ips_badhlen in op_ipstat() 287 + ipstat.ips_badlen + ipstat.ips_badvers + in op_ipstat() 288 + ipstat.ips_toolong; in op_ipstat() 296 value->v.uint32 = ipstat.ips_forward; in op_ipstat() 300 value->v.uint32 = ipstat.ips_noproto; in op_ipstat() [all …]
|
| /freebsd-14.2/sys/netinet/ |
| H A D | ip_var.h | 105 struct ipstat { struct 142 VNET_PCPUSTAT_DECLARE(struct ipstat, ipstat); argument 148 VNET_PCPUSTAT_ADD(struct ipstat, ipstat, name, (val)) 158 kmod_ipstat_inc(offsetof(struct ipstat, name) / sizeof(uint64_t)) 161 kmod_ipstat_dec(offsetof(struct ipstat, name) / sizeof(uint64_t))
|
| H A D | ip_input.c | 199 VNET_PCPUSTAT_DEFINE(struct ipstat, ipstat); 200 VNET_PCPUSTAT_SYSINIT(ipstat); 201 SYSCTL_VNET_PCPUSTAT(_net_inet_ip, IPCTL_STATS, stats, struct ipstat, ipstat, 205 VNET_PCPUSTAT_SYSUNINIT(ipstat); 216 counter_u64_add(VNET(ipstat)[statnum], 1); in kmod_ipstat_inc() 223 counter_u64_add(VNET(ipstat)[statnum], -1); in kmod_ipstat_dec()
|
| /freebsd-14.2/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-14.2/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-14.2/tests/sys/netinet/ |
| H A D | ip_reass_test.c | 169 get_ipstat(struct ipstat *stat) in get_ipstat() 199 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-14.2/usr.bin/netstat/ |
| H A D | inet.c | 1028 struct ipstat ipstat; in ip_stats() local 1030 if (fetch_stats("net.inet.ip.stats", off, &ipstat, in ip_stats() 1031 sizeof(ipstat), kread_counters) != 0) in ip_stats() 1037 #define p(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1038 xo_emit(m, (uintmax_t )ipstat.f, plural(ipstat.f)) in ip_stats() 1039 #define p1a(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1040 xo_emit(m, (uintmax_t )ipstat.f) in ip_stats() 1076 if (ipstat.ips_forward || sflag <= 1) in ip_stats()
|
| /freebsd-14.2/usr.bin/systat/ |
| H A D | ip.c | 63 struct ipstat i;
|