summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_debug.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2004-09-24 15:02:43 +0000
committermarkus <markus@openbsd.org>2004-09-24 15:02:43 +0000
commit0056b770715f92f87a33d39cd1f513964c3f06b0 (patch)
treecc954e2219bc1bfbc765cdae07962cc20ab0a820 /sys/netinet/tcp_debug.c
parenttimedout is not an english word, complaint from theo, ok marco (diff)
downloadwireguard-openbsd-0056b770715f92f87a33d39cd1f513964c3f06b0.tar.xz
wireguard-openbsd-0056b770715f92f87a33d39cd1f513964c3f06b0.zip
pass segment size to userland; ok deraadt@
Diffstat (limited to 'sys/netinet/tcp_debug.c')
-rw-r--r--sys/netinet/tcp_debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_debug.c b/sys/netinet/tcp_debug.c
index 88f647ffd8d..d5e9b3f0468 100644
--- a/sys/netinet/tcp_debug.c
+++ b/sys/netinet/tcp_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_debug.c,v 1.19 2004/07/15 15:27:22 markus Exp $ */
+/* $OpenBSD: tcp_debug.c,v 1.20 2004/09/24 15:02:43 markus Exp $ */
/* $NetBSD: tcp_debug.c,v 1.10 1996/02/13 23:43:36 christos Exp $ */
/*
@@ -145,6 +145,7 @@ tcp_trace(short act, short ostate, struct tcpcb *tp, caddr_t headers,
if (ti6) {
th = &ti6->ti6_t;
td->td_ti6 = *ti6;
+ td->td_ti6.ti6_plen = len;
} else
bzero(&td->td_ti6, sizeof(struct tcpipv6hdr));
break;
@@ -153,6 +154,7 @@ tcp_trace(short act, short ostate, struct tcpcb *tp, caddr_t headers,
if (ti) {
th = &ti->ti_t;
td->td_ti = *ti;
+ td->td_ti.ti_len = len;
} else
bzero(&td->td_ti, sizeof(struct tcpiphdr));
break;