summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2018-01-23 20:49:58 +0000
committerbluhm <bluhm@openbsd.org>2018-01-23 20:49:58 +0000
commit5b4b4f44843050d177c9bc25fa664c114557c8f5 (patch)
tree1eff74c08603102a2bfdee60f19c8c12f1386846 /sys/netinet/tcp_usrreq.c
parentFix printf(9) format strings so that a kernel with TCPDEBUG compiles. (diff)
downloadwireguard-openbsd-5b4b4f44843050d177c9bc25fa664c114557c8f5.tar.xz
wireguard-openbsd-5b4b4f44843050d177c9bc25fa664c114557c8f5.zip
Bring back the PRU_ATTACH constant and description. Then trpt(8)
prints the ATTACH action for TCP debugging socketes correctly. OK bluhm@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index c534f0eb2b7..4c33de84279 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.164 2018/01/22 20:27:28 bluhm Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.165 2018/01/23 20:49:58 bluhm Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -602,8 +602,8 @@ tcp_attach(struct socket *so, int proto)
if ((so->so_options & SO_LINGER) && so->so_linger == 0)
so->so_linger = TCP_LINGERTIME;
- if (tp && (so->so_options & SO_DEBUG))
- tcp_trace(TA_USER, 0, tp, (caddr_t)0, 0 /* XXX */, 0);
+ if (so->so_options & SO_DEBUG)
+ tcp_trace(TA_USER, TCPS_CLOSED, tp, (caddr_t)0, PRU_ATTACH, 0);
return (0);
}