Searched refs:tcpstat (Results 1 – 7 of 7) sorted by relevance
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_tcp.c | 49 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() 230 value->v.uint32 = tcpstat.tcps_connattempt; in op_tcp() 234 value->v.uint32 = tcpstat.tcps_accepts; in op_tcp() 238 value->v.uint32 = tcpstat.tcps_conndrops; in op_tcp() 242 value->v.uint32 = tcpstat.tcps_drops; in op_tcp() 251 value->v.uint32 = tcpstat.tcps_rcvtotal; in op_tcp() 255 value->v.uint32 = tcpstat.tcps_sndtotal - in op_tcp() [all …]
|
/freebsd/usr.bin/netstat/ |
H A D | inet.c | 577 struct tcpstat tcpstat; in tcp_stats() local 587 if (fetch_stats("net.inet.tcp.stats", off, &tcpstat, in tcp_stats() 588 sizeof(tcpstat), kread_counters) != 0) in tcp_stats() 598 #define p(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats() 599 xo_emit(m, (uintmax_t )tcpstat.f, plural(tcpstat.f)) in tcp_stats() 600 #define p1a(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats() 601 xo_emit(m, (uintmax_t )tcpstat.f) in tcp_stats() 602 #define p2(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \ in tcp_stats() 603 xo_emit(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \ in tcp_stats() 604 (uintmax_t )tcpstat.f2, plural(tcpstat.f2)) in tcp_stats() [all …]
|
/freebsd/usr.bin/systat/ |
H A D | tcp.c | 56 static struct tcpstat curstat, initstat, oldstat; 134 domode(struct tcpstat *ret) in domode() 136 const struct tcpstat *sub; in domode() 224 struct tcpstat stats; in showtcp()
|
/freebsd/contrib/unbound/compat/ |
H A D | getentropy_osx.c | 221 struct tcpstat tcpstat; in getentropy_fallback() local 260 ii = sizeof(tcpstat); in getentropy_fallback() 262 &tcpstat, &ii, NULL, 0) == -1, tcpstat); in getentropy_fallback()
|
/freebsd/sys/netinet/ |
H A D | tcp_var.h | 947 struct tcpstat { struct 1112 VNET_PCPUSTAT_DECLARE(struct tcpstat, tcpstat); /* tcp statistics */ argument 1120 VNET_PCPUSTAT_ADD(struct tcpstat, tcpstat, name, (val)); \ 1131 kmod_tcpstat_add(offsetof(struct tcpstat, name) / \
|
H A D | tcp_input.c | 236 VNET_PCPUSTAT_DEFINE(struct tcpstat, tcpstat); 237 SYSCTL_VNET_PCPUSTAT(_net_inet_tcp, TCPCTL_STATS, stats, struct tcpstat, 238 tcpstat, "TCP statistics (struct tcpstat, netinet/tcp_var.h)"); 252 counter_u64_add(VNET(tcpstat)[statnum], val); in kmod_tcpstat_add()
|
H A D | tcp_subr.c | 1464 VNET_PCPUSTAT_ALLOC(tcpstat, M_WAITOK); in tcp_vnet_init() 1612 VNET_PCPUSTAT_FREE(tcpstat); in tcp_destroy()
|