Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/bsnmp/snmp_mibII/
H A DmibII_tcp.c49 static struct tcpstat tcpstat; variable
72 len = sizeof(tcpstat); in fetch_tcp_stats()
77 if (len != sizeof(tcpstat)) { in fetch_tcp_stats()
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()
256 tcpstat.tcps_sndrexmitpack; in op_tcp()
265 tcpstat.tcps_rcvbadoff + in op_tcp()
[all …]
/freebsd-14.2/usr.bin/netstat/
H A Dinet.c584 struct tcpstat tcpstat; in tcp_stats() local
595 sizeof(tcpstat), kread_counters) != 0) in tcp_stats()
606 xo_emit(m, (uintmax_t )tcpstat.f, plural(tcpstat.f)) 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()
612 #define p2a(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \ in tcp_stats()
613 xo_emit(m, (uintmax_t )tcpstat.f1, plural(tcpstat.f1), \ in tcp_stats()
614 (uintmax_t )tcpstat.f2) in tcp_stats()
[all …]
/freebsd-14.2/usr.bin/systat/
H A Dtcp.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.2/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-14.2/sys/netinet/
H A Dtcp_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)
H A Dtcp_input.c238 VNET_PCPUSTAT_DEFINE(struct tcpstat, tcpstat);
239 SYSCTL_VNET_PCPUSTAT(_net_inet_tcp, TCPCTL_STATS, stats, struct tcpstat,
240 tcpstat, "TCP statistics (struct tcpstat, netinet/tcp_var.h)");
254 counter_u64_add(VNET(tcpstat)[statnum], val); in kmod_tcpstat_add()
H A Dtcp_subr.c1508 VNET_PCPUSTAT_ALLOC(tcpstat, M_WAITOK); in tcp_vnet_init()
1669 VNET_PCPUSTAT_FREE(tcpstat); in tcp_destroy()