diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2000-01-16 13:36:37 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2000-01-16 13:36:37 +0000 |
commit | d8dda2d9ab89c3bd3251ed5f094ccef091356609 (patch) | |
tree | c5f1adc7c3b7a7ff01e691500a86180b26d75f1c | |
parent | 5cc97dd4270232b050c82f48747a574a38724a76 (diff) |
print pcap_version in usage()
-rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index 28d0c9eb24c..8e9fecb9414 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -24,7 +24,7 @@ static const char copyright[] = "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997\n\ The Regents of the University of California. All rights reserved.\n"; static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.14 1999/09/16 20:58:48 brad Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.15 2000/01/16 13:36:36 jakob Exp $ (LBL)"; #endif /* @@ -507,10 +507,12 @@ __dead void usage(void) { extern char version[]; + extern char pcap_version[]; (void)fprintf(stderr, "%s version %s\n", program_name, version); + (void)fprintf(stderr, "libpcap version %s\n", pcap_version); (void)fprintf(stderr, -"Usage: tcpdump [-adeflnNOpqStvxX] [-c count] [ -F file ]\n"); +"Usage: %s [-adeflnNOpqStvxX] [-c count] [ -F file ]\n", program_name); (void)fprintf(stderr, "\t\t[ -i interface ] [ -r file ] [ -s snaplen ]\n"); (void)fprintf(stderr, |