Home
last modified time | relevance | path

Searched refs:tcpstat (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_tcp.c48 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 Dinet.c576 struct tcpstat tcpstat; in tcp_stats() local
586 if (fetch_stats("net.inet.tcp.stats", off, &tcpstat, in tcp_stats()
587 sizeof(tcpstat), kread_counters) != 0) in tcp_stats()
597 #define p(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats()
598 xo_emit(m, (uintmax_t )tcpstat.f, plural(tcpstat.f)) in tcp_stats()
599 #define p1a(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats()
600 xo_emit(m, (uintmax_t )tcpstat.f) in tcp_stats()
601 #define p2(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \ in tcp_stats()
602 xo_emit(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \ in tcp_stats()
603 (uintmax_t )tcpstat.f2, plural(tcpstat.f2)) in tcp_stats()
[all …]
/freebsd/usr.bin/systat/
H A Dtcp.c55 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/contrib/unbound/compat/
H A Dgetentropy_osx.c221 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 Dtcp_var.h937 struct tcpstat { struct
1104 VNET_PCPUSTAT_DECLARE(struct tcpstat, tcpstat); /* tcp statistics */ argument
1112 VNET_PCPUSTAT_ADD(struct tcpstat, tcpstat, name, (val)); \
1123 kmod_tcpstat_add(offsetof(struct tcpstat, name) / \
H A Dtcp_input.c233 VNET_PCPUSTAT_DEFINE(struct tcpstat, tcpstat);
234 SYSCTL_VNET_PCPUSTAT(_net_inet_tcp, TCPCTL_STATS, stats, struct tcpstat,
235 tcpstat, "TCP statistics (struct tcpstat, netinet/tcp_var.h)");
249 counter_u64_add(VNET(tcpstat)[statnum], val); in kmod_tcpstat_add()
H A Dtcp_subr.c1452 VNET_PCPUSTAT_ALLOC(tcpstat, M_WAITOK); in tcp_vnet_init()
1595 VNET_PCPUSTAT_FREE(tcpstat); in tcp_destroy()