Home
last modified time | relevance | path

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

/freebsd-14-stable/contrib/bsnmp/snmp_mibII/
HDmibII_tcp.c49 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-14-stable/usr.bin/netstat/
HDinet.c584 struct tcpstat tcpstat; in tcp_stats() local
594 if (fetch_stats("net.inet.tcp.stats", off, &tcpstat, in tcp_stats()
595 sizeof(tcpstat), kread_counters) != 0) in tcp_stats()
605 #define p(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats()
606 xo_emit(m, (uintmax_t )tcpstat.f, plural(tcpstat.f)) in tcp_stats()
607 #define p1a(f, m) if (tcpstat.f || sflag <= 1) \ in tcp_stats()
608 xo_emit(m, (uintmax_t )tcpstat.f) in tcp_stats()
609 #define p2(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \ in tcp_stats()
610 xo_emit(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \ in tcp_stats()
611 (uintmax_t )tcpstat.f2, plural(tcpstat.f2)) in tcp_stats()
[all …]
/freebsd-14-stable/usr.bin/systat/
HDtcp.c66 static struct tcpstat curstat, initstat, oldstat;
144 domode(struct tcpstat *ret) in domode()
146 const struct tcpstat *sub; in domode()
234 struct tcpstat stats; in showtcp()
/freebsd-14-stable/contrib/unbound/compat/
HDgetentropy_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-14-stable/sys/netinet/
HDtcp_var.h969 struct tcpstat { struct
1133 VNET_PCPUSTAT_DECLARE(struct tcpstat, tcpstat); /* tcp statistics */ argument
1139 VNET_PCPUSTAT_ADD(struct tcpstat, tcpstat, name, (val))
1147 kmod_tcpstat_add(offsetof(struct tcpstat, name) / sizeof(uint64_t), val)
HDtcp_input.c243 VNET_PCPUSTAT_DEFINE(struct tcpstat, tcpstat);
244 SYSCTL_VNET_PCPUSTAT(_net_inet_tcp, TCPCTL_STATS, stats, struct tcpstat,
245 tcpstat, "TCP statistics (struct tcpstat, netinet/tcp_var.h)");
259 counter_u64_add(VNET(tcpstat)[statnum], val); in kmod_tcpstat_add()
HDtcp_subr.c1508 VNET_PCPUSTAT_ALLOC(tcpstat, M_WAITOK); in tcp_vnet_init()
1669 VNET_PCPUSTAT_FREE(tcpstat); in tcp_destroy()