diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-01-24 05:13:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-01-24 05:13:45 +0000 |
commit | 2727167b2da0c361f9fdc4347a6e3037a551aa1a (patch) | |
tree | f7732713c908aa12461b3776f684a5c164de2a6f /tethereal.c | |
parent | a6c861577f8e2586881e6356c2a98dd1c351f504 (diff) |
Make the Tethereal usage message reflect whether libpcap support was
compiled in or not.
svn path=/trunk/; revision=1536
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tethereal.c b/tethereal.c index 54edce854f..0018c8e269 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.14 2000/01/24 04:53:54 guy Exp $ + * $Id: tethereal.c,v 1.15 2000/01/24 05:13:45 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -143,11 +143,16 @@ print_usage(void) fprintf(stderr, "This is GNU t%s %s, compiled with %s\n", PACKAGE, VERSION, comp_info_str); - +#ifdef HAVE_LIBPCAP fprintf(stderr, "t%s [ -vVh ] [ -c count ] [ -D ] [ -f <filter expression> ]\n", PACKAGE); - fprintf(stderr, "\t[ -F <capture type> ] [ -i iface ] [ -n ] [ -r infile ]\n"); + fprintf(stderr, "\t[ -F <capture file type> ] [ -i iface ] [ -n ] [ -r infile ]\n"); fprintf(stderr, "\t[ -R <filter expression> ] [ -s snaplen ] [ -t <time stamp format> ]\n"); fprintf(stderr, "\t[ -w savefile ] [ -x ]\n"); +#else + fprintf(stderr, "t%s [ -vVh ] [ -D ] [ -F <capture file type> ] [ -n ] [ -r infile ]\n", PACKAGE); + fprintf(stderr, "\t[ -R <filter expression> ] [ -t <time stamp format> ] [ -w savefile ]\n"); + fprintf(stderr, "\t[ -x ]\n"); +#endif fprintf(stderr, "Valid file type arguments to the \"-F\" flag:\n"); for (i = 0; i < WTAP_NUM_FILE_TYPES; i++) { if (wtap_dump_can_open(i)) |