Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/tcpdump Don't let an llc be dumped twice.



details:   https://anonhg.NetBSD.org/src/rev/e5f2663eb2d5
branches:  trunk
changeset: 486737:e5f2663eb2d5
user:      matt <matt%NetBSD.org@localhost>
date:      Sun May 28 01:25:20 2000 +0000

description:
Don't let an llc be dumped twice.

diffstat:

 usr.sbin/tcpdump/print-llc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f1b8f4a89a1c -r e5f2663eb2d5 usr.sbin/tcpdump/print-llc.c
--- a/usr.sbin/tcpdump/print-llc.c      Sun May 28 01:03:22 2000 +0000
+++ b/usr.sbin/tcpdump/print-llc.c      Sun May 28 01:25:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-llc.c,v 1.4 1999/02/11 07:52:14 abs Exp $        */
+/*     $NetBSD: print-llc.c,v 1.5 2000/05/28 01:25:20 matt Exp $       */
 
 /*
  * Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
@@ -30,7 +30,7 @@
 static const char rcsid[] =
     "@(#) Header: print-llc.c,v 1.24 97/01/01 20:56:48 leres Exp ";
 #else
-__RCSID("$NetBSD: print-llc.c,v 1.4 1999/02/11 07:52:14 abs Exp $");
+__RCSID("$NetBSD: print-llc.c,v 1.5 2000/05/28 01:25:20 matt Exp $");
 #endif
 #endif
 
@@ -196,7 +196,7 @@
                caplen -= 4;
        }
        (void)printf(" len=%d", length);
-       if (caplen > 0) {
+       if (caplen > 0 && !xflag) {
                default_print_unaligned(p, caplen);
        }
        return(1);



Home | Main Index | Thread Index | Old Index