summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_debug.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2008-10-30 15:48:55 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2008-10-30 15:48:55 +0000
commit5bf4831509e84abd20e6b02f70108831d4e98d39 (patch)
treeb286b3e7721bc98e312fd0bfa7b489178bb2cac7 /sys/netinet/tcp_debug.c
parent35fc006bf838ec890650eed7a0458c521844ecc6 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_debug.c')
-rw-r--r--sys/netinet/tcp_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_debug.c b/sys/netinet/tcp_debug.c
index aaeac9dfaf62..a82943d75832 100644
--- a/sys/netinet/tcp_debug.c
+++ b/sys/netinet/tcp_debug.c
@@ -171,7 +171,7 @@ tcp_trace(short act, short ostate, struct tcpcb *tp, void *ipgen,
ack = th->th_ack;
len =
#ifdef INET6
- isipv6 ? ((struct ip6_hdr *)ipgen)->ip6_plen :
+ isipv6 ? ntohs(((struct ip6_hdr *)ipgen)->ip6_plen) :
#endif
((struct ip *)ipgen)->ip_len;
if (act == TA_OUTPUT) {