Searched refs:tcpstat (Results 1 – 7 of 7) sorted by relevance
| /freebsd/contrib/bsnmp/snmp_mibII/ |
| H A D | mibII_tcp.c | 48 static struct tcpstat tcpstat; variable 72 len = sizeof(tcpstat); in fetch_tcp_stats() 73 if (sysctlbyname("net.inet.tcp.stats", &tcpstat, &len, NULL, 0) == -1) { in fetch_tcp_stats() 77 if (len != sizeof(tcpstat)) { in fetch_tcp_stats() 249 value->v.uint32 = tcpstat.tcps_connattempt; in op_tcp() 253 value->v.uint32 = tcpstat.tcps_accepts; in op_tcp() 257 value->v.uint32 = tcpstat.tcps_conndrops; in op_tcp() 261 value->v.uint32 = tcpstat.tcps_drops; in op_tcp() 270 value->v.uint32 = tcpstat.tcps_rcvtotal; in op_tcp() 274 value->v.uint32 = tcpstat.tcps_sndtotal - in op_tcp() [all …]
|
| /freebsd/usr.bin/netstat/ |
| H A D | inet.c | 590 struct tcpstat tcpstat; in tcp_stats() local 600 if (fetch_stats("net.inet.tcp.stats", off, &tcpstat, in tcp_stats() 601 sizeof(tcpstat), kread_counters) != 0) in tcp_stats() 611 #define p(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats() 612 xo_emit(m, (uintmax_t )tcpstat.f, plural(tcpstat.f)) in tcp_stats() 613 #define p1a(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats() 614 xo_emit(m, (uintmax_t )tcpstat.f) in tcp_stats() 615 #define p1b(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats() 616 xo_emit(m, (uintmax_t )tcpstat.f, plurales(tcpstat.f)) in tcp_stats() 617 #define p2(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \ in tcp_stats() [all …]
|
| H A D | nlist_symbols | 42 all tcpstat
|
| /freebsd/usr.bin/systat/ |
| H A D | tcp.c | 55 static struct tcpstat curstat, initstat, oldstat; 133 domode(struct tcpstat *ret) in domode() 135 const struct tcpstat *sub; in domode() 223 struct tcpstat stats; in showtcp()
|
| /freebsd/sys/netinet/ |
| H A D | tcp_var.h | 968 struct tcpstat { struct 1142 VNET_PCPUSTAT_DECLARE(struct tcpstat, tcpstat); /* tcp statistics */ argument 1150 VNET_PCPUSTAT_ADD(struct tcpstat, tcpstat, name, (val)); \ 1161 kmod_tcpstat_add(offsetof(struct tcpstat, name) / \
|
| H A D | tcp_input.c | 232 VNET_PCPUSTAT_DEFINE(struct tcpstat, tcpstat); 233 SYSCTL_VNET_PCPUSTAT(_net_inet_tcp, TCPCTL_STATS, stats, struct tcpstat, 234 tcpstat, "TCP statistics (struct tcpstat, netinet/tcp_var.h)"); 248 counter_u64_add(VNET(tcpstat)[statnum], val); in kmod_tcpstat_add()
|
| H A D | tcp_subr.c | 1467 VNET_PCPUSTAT_ALLOC(tcpstat, M_WAITOK); in tcp_vnet_init() 1610 VNET_PCPUSTAT_FREE(tcpstat); in tcp_vnet_destroy()
|