Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/tcpdump use of ip_p is irrelevant in tcp_cksum, as ...
details: https://anonhg.NetBSD.org/src/rev/c8a440cf1b54
branches: trunk
changeset: 495609:c8a440cf1b54
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Aug 01 17:34:00 2000 +0000
description:
use of ip_p is irrelevant in tcp_cksum, as we may have AH/ESP inbetween.
diffstat:
usr.sbin/tcpdump/print-tcp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3746020e9655 -r c8a440cf1b54 usr.sbin/tcpdump/print-tcp.c
--- a/usr.sbin/tcpdump/print-tcp.c Tue Aug 01 17:29:47 2000 +0000
+++ b/usr.sbin/tcpdump/print-tcp.c Tue Aug 01 17:34:00 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print-tcp.c,v 1.17 2000/08/01 17:24:40 itojun Exp $ */
+/* $NetBSD: print-tcp.c,v 1.18 2000/08/01 17:34:00 itojun Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -27,7 +27,7 @@
static const char rcsid[] =
"@(#) Header: print-tcp.c,v 1.55 97/06/15 13:20:28 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: print-tcp.c,v 1.17 2000/08/01 17:24:40 itojun Exp $");
+__RCSID("$NetBSD: print-tcp.c,v 1.18 2000/08/01 17:34:00 itojun Exp $");
#endif
#endif
@@ -136,7 +136,7 @@
/* pseudo-header.. */
phu.ph.len = htons(tlen);
phu.ph.mbz = 0;
- phu.ph.proto = ip->ip_p;
+ phu.ph.proto = IPPROTO_TCP;
memcpy(&phu.ph.src, &ip->ip_src.s_addr, sizeof(u_int32_t));
memcpy(&phu.ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t));
Home |
Main Index |
Thread Index |
Old Index