From 0559d7257d66867135aee7b4d99caabd4a5b0576 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 29 Jan 2008 10:49:27 +0000 Subject: Say "printing not supported", not just "not supported", for DLT_ values for which we don't have a print routine; you *can* use tcpdump to capture traffic with those DLT_ values, as long as you use "-w" so that we don't interpret the contents of the packet, we just blindly write the raw packet data to the capture file. --- tcpdump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tcpdump.c') diff --git a/tcpdump.c b/tcpdump.c index aabcd4de..6c708785 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -30,7 +30,7 @@ static const char copyright[] _U_ = "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000\n\ The Regents of the University of California. All rights reserved.\n"; static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/tcpdump.c,v 1.275 2007-12-20 08:13:35 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/tcpdump.c,v 1.276 2008-01-29 10:49:27 guy Exp $ (LBL)"; #endif /* @@ -334,10 +334,10 @@ show_dlts_and_exit(pcap_t *pd) * OK, does tcpdump handle that type? */ if (lookup_printer(dlts[n_dlts]) == NULL) - (void) fprintf(stderr, " (not supported)"); + (void) fprintf(stderr, " (printing not supported)"); putchar('\n'); } else { - (void) fprintf(stderr, " DLT %d (not supported)\n", + (void) fprintf(stderr, " DLT %d (printing not supported)\n", dlts[n_dlts]); } } -- cgit v1.2.1