summaryrefslogtreecommitdiffstats
path: root/usr.bin/tcpbench/tcpbench.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2010-10-19 10:03:23 +0000
committerclaudio <claudio@openbsd.org>2010-10-19 10:03:23 +0000
commit3e8c12224c9e364a29026dd7d55c5426abd17b11 (patch)
treeefee8643193beba42f8898452f8ba75b40f19c3d /usr.bin/tcpbench/tcpbench.c
parentFix a segmentation fault when adding an attribute to an empty entry. (diff)
downloadwireguard-openbsd-3e8c12224c9e364a29026dd7d55c5426abd17b11.tar.xz
wireguard-openbsd-3e8c12224c9e364a29026dd7d55c5426abd17b11.zip
Add a few more tcpcb and sockbuffer variables that tcpbench can inspect.
Diffstat (limited to 'usr.bin/tcpbench/tcpbench.c')
-rw-r--r--usr.bin/tcpbench/tcpbench.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.bin/tcpbench/tcpbench.c b/usr.bin/tcpbench/tcpbench.c
index fefff4c6da0..25e370802b3 100644
--- a/usr.bin/tcpbench/tcpbench.c
+++ b/usr.bin/tcpbench/tcpbench.c
@@ -91,8 +91,10 @@ static struct {
static const char *allowed_kvars[] = {
"inpcb.inp_flags",
"sockb.so_rcv.sb_cc",
+ "sockb.so_rcv.sb_wat",
"sockb.so_rcv.sb_hiwat",
"sockb.so_snd.sb_cc",
+ "sockb.so_snd.sb_wat",
"sockb.so_snd.sb_hiwat",
"tcpcb.snd_una",
"tcpcb.snd_nxt",
@@ -115,6 +117,10 @@ static const char *allowed_kvars[] = {
"tcpcb.snd_scale",
"tcpcb.rcv_scale",
"tcpcb.last_ack_sent",
+ "tcpcb.rfbuf_cnt",
+ "tcpcb.rfbuf_ts",
+ "tcpcb.ts_recent_age",
+ "tcpcb.ts_recent",
NULL
};
@@ -419,8 +425,10 @@ stats_display(unsigned long long total_elapsed, long double mbps,
}
P(inpcb, inp_flags, "0x%08x")
P(sockb, so_rcv.sb_cc, "%lu")
+ P(sockb, so_rcv.sb_wat, "%lu")
P(sockb, so_rcv.sb_hiwat, "%lu")
P(sockb, so_snd.sb_cc, "%lu")
+ P(sockb, so_snd.sb_wat, "%lu")
P(sockb, so_snd.sb_hiwat, "%lu")
P(tcpcb, snd_una, "%u")
P(tcpcb, snd_nxt, "%u")
@@ -443,6 +451,10 @@ stats_display(unsigned long long total_elapsed, long double mbps,
P(tcpcb, snd_scale, "%u")
P(tcpcb, rcv_scale, "%u")
P(tcpcb, last_ack_sent, "%u")
+ P(tcpcb, rfbuf_cnt, "%u")
+ P(tcpcb, rfbuf_ts, "%u")
+ P(tcpcb, ts_recent_age, "%u")
+ P(tcpcb, ts_recent, "%u")
#undef S
#undef P
}