Searched refs:ipstat (Results 1 – 4 of 4) sorted by relevance
| /f-stack/tools/compat/include/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))
|
| /f-stack/freebsd/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()
|
| /f-stack/tools/netstat/ |
| H A D | inet.c | 1010 struct ipstat ipstat; in ip_stats() local 1012 if (fetch_stats("net.inet.ip.stats", off, &ipstat, in ip_stats() 1013 sizeof(ipstat), kread_counters) != 0) in ip_stats() 1019 #define p(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1020 xo_emit(m, (uintmax_t )ipstat.f, plural(ipstat.f)) in ip_stats() 1021 #define p1a(f, m) if (ipstat.f || sflag <= 1) \ in ip_stats() 1022 xo_emit(m, (uintmax_t )ipstat.f) in ip_stats() 1058 if (ipstat.ips_forward || sflag <= 1) in ip_stats()
|