summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguy <guy>2008-01-29 10:50:28 +0000
committerguy <guy>2008-01-29 10:50:28 +0000
commit13b7523e8732cc95666c8bb2a52d049a12aae92a (patch)
tree137156728519749e70e8b78d379a4b05b5386c30
parent5c694c5c9b796bb458322122c78707c8c50b95f0 (diff)
downloadtcpdump-13b7523e8732cc95666c8bb2a52d049a12aae92a.tar.gz
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.
-rw-r--r--tcpdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 97a4c9a2..561c9149 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.271.2.4 2007-12-20 08:14:18 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/tcpdump.c,v 1.271.2.5 2008-01-29 10:50:28 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]);
}
}