summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2018-06-11 07:40:26 +0000
committerbluhm <bluhm@openbsd.org>2018-06-11 07:40:26 +0000
commit4e64d49b299b035a80413de9c2614f79e6e7fea5 (patch)
treef474d241ee20f7f1b85fbfc9f5930139fa935848 /sys/netinet/tcp_output.c
parentuse the correct name for the cert; ok gilles (diff)
downloadwireguard-openbsd-4e64d49b299b035a80413de9c2614f79e6e7fea5.tar.xz
wireguard-openbsd-4e64d49b299b035a80413de9c2614f79e6e7fea5.zip
The output from tcp debug sockets was incomplete. After detach tp
was NULL and nothing was traced. So save the old tcpcb and use that to retrieve some information. Note that otb may be freed and must not be dereferenced. Use a heuristic for cases where the address family is in the IP header but not provided in the PCB. OK visa@
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 3a18b29238f..7abcf26675e 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.124 2018/05/08 15:10:33 bluhm Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.125 2018/06/11 07:40:26 bluhm Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -983,7 +983,7 @@ send:
* Trace.
*/
if (so->so_options & SO_DEBUG)
- tcp_trace(TA_OUTPUT, tp->t_state, tp, mtod(m, caddr_t), 0,
+ tcp_trace(TA_OUTPUT, tp->t_state, tp, tp, mtod(m, caddr_t), 0,
len);
/*