Searched refs:ipstat (Results 1 – 8 of 8) sorted by relevance
/freebsd/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/sys/netinet/ |
H A D | ip_var.h | 103 struct ipstat { struct 141 VNET_PCPUSTAT_DECLARE(struct ipstat, ipstat); argument 149 VNET_PCPUSTAT_ADD(struct ipstat, ipstat, name, (val)); \ 163 offsetof(struct ipstat, name) / sizeof(uint64_t)); \ 170 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/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/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/tests/sys/netinet/ |
H A D | ip_reass_test.c | 168 get_ipstat(struct ipstat *stat) in get_ipstat() 198 struct ipstat old, new; in ATF_TC_BODY() 278 struct ipstat old, new; in ATF_TC_BODY() 328 struct ipstat old, new; in ATF_TC_BODY()
|
/freebsd/usr.bin/netstat/ |
H A D | inet.c | 1022 struct ipstat ipstat; in ip_stats() local 1024 if (fetch_stats("net.inet.ip.stats", off, &ipstat, in ip_stats() 1025 sizeof(ipstat), kread_counters) != 0) in ip_stats() 1031 #define p(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1032 xo_emit(m, (uintmax_t )ipstat.f, plural(ipstat.f)) in ip_stats() 1033 #define p1a(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1034 xo_emit(m, (uintmax_t )ipstat.f) in ip_stats() 1070 if (ipstat.ips_forward || sflag <= 1) in ip_stats()
|
/freebsd/usr.bin/systat/ |
H A D | ip.c | 60 struct ipstat i;
|