summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/tcpdump.c
diff options
context:
space:
mode:
authorjakob <jakob@openbsd.org>2000-01-16 13:36:36 +0000
committerjakob <jakob@openbsd.org>2000-01-16 13:36:36 +0000
commit34b23dd11cf5aa63f1829e7e2f22754503801237 (patch)
treef9de6ec81bd4848afba749e1f580eb07f923f0ef /usr.sbin/tcpdump/tcpdump.c
parentINET6 (from KAME) (diff)
downloadwireguard-openbsd-34b23dd11cf5aa63f1829e7e2f22754503801237.tar.xz
wireguard-openbsd-34b23dd11cf5aa63f1829e7e2f22754503801237.zip
print pcap_version in usage()
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r--usr.sbin/tcpdump/tcpdump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c
index b6b9a866682..75f7880a9f9 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: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.14 1999/09/16 20:58:48 brad Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/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,