Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix m_examine_tcp() to print TCP header length (th_...
details: https://anonhg.NetBSD.org/src/rev/8fa18a592eb2
branches: trunk
changeset: 993925:8fa18a592eb2
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Oct 10 10:54:30 2018 +0000
description:
Fix m_examine_tcp() to print TCP header length (th_off) correctly.
diffstat:
sys/kern/uipc_mbufdebug.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b19a2de88264 -r 8fa18a592eb2 sys/kern/uipc_mbufdebug.c
--- a/sys/kern/uipc_mbufdebug.c Wed Oct 10 09:40:11 2018 +0000
+++ b/sys/kern/uipc_mbufdebug.c Wed Oct 10 10:54:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbufdebug.c,v 1.3 2018/09/03 16:29:35 riastradh Exp $ */
+/* $NetBSD: uipc_mbufdebug.c,v 1.4 2018/10/10 10:54:30 msaitoh Exp $ */
/*
* Copyright (C) 2017 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbufdebug.c,v 1.3 2018/09/03 16:29:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbufdebug.c,v 1.4 2018/10/10 10:54:30 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -833,7 +833,7 @@
(*pr)("TCP: Dst = %u\n", ntohs(tcp.th_dport));
(*pr)("TCP: Seq. = %u\n", ntohl(tcp.th_seq));
(*pr)("TCP: Ack. = %u\n", ntohl(tcp.th_ack));
- (*pr)("TCP: Header Length = %u\n", ntohl(tcp.th_off) << 2);
+ (*pr)("TCP: Header Length = %u\n", tcp.th_off << 2);
if (tcp.th_flags) {
(*pr)("TCP: Flags 0x%02x : ", tcp.th_flags);
if (tcp.th_flags & TH_FIN)
Home |
Main Index |
Thread Index |
Old Index