Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/tcpdump sync with kame; print IPv6 fragment id more...
details: https://anonhg.NetBSD.org/src/rev/b6ccaf2070ce
branches: trunk
changeset: 475816:b6ccaf2070ce
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Aug 26 11:16:06 1999 +0000
description:
sync with kame; print IPv6 fragment id more nicely.
diffstat:
usr.sbin/tcpdump/print-frag6.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 2970ab6fe007 -r b6ccaf2070ce usr.sbin/tcpdump/print-frag6.c
--- a/usr.sbin/tcpdump/print-frag6.c Thu Aug 26 11:11:51 1999 +0000
+++ b/usr.sbin/tcpdump/print-frag6.c Thu Aug 26 11:16:06 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print-frag6.c,v 1.2 1999/07/04 02:57:51 itojun Exp $ */
+/* $NetBSD: print-frag6.c,v 1.3 1999/08/26 11:16:06 itojun Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@@ -70,9 +70,17 @@
ep = snapend;
TCHECK(dp->ip6f_offlg);
- printf("frag (%d|%d) ",
- ntohs(dp->ip6f_offlg & IP6F_OFF_MASK),
- ntohs(ip->ip6_plen));
+
+ if (vflag) {
+ printf("frag (%08x:%d|%d) ",
+ ntohl(dp->ip6f_ident),
+ ntohs(dp->ip6f_offlg & IP6F_OFF_MASK),
+ ntohs(ip->ip6_plen));
+ } else {
+ printf("frag (%d|%d) ",
+ ntohs(dp->ip6f_offlg & IP6F_OFF_MASK),
+ ntohs(ip->ip6_plen));
+ }
return;
trunc:
Home |
Main Index |
Thread Index |
Old Index