summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-09-24 15:02:44 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-09-24 15:02:44 +0000
commitd8a992dd20d3f2457946e5ca6a39ad42082087cd (patch)
tree78f80f1a3dced8e311fd30228aff4a82596ebec1 /sys/netinet
parentba79920b80f0e166df0f4517e42d5b74c2a854fd (diff)
pass segment size to userland; ok deraadt@
Diffstat (limited to 'sys/netinet')
-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;