summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorPeter Galbavy <peter@cvs.openbsd.org>1998-02-26 10:06:14 +0000
committerPeter Galbavy <peter@cvs.openbsd.org>1998-02-26 10:06:14 +0000
commit2fad9e4b488ab696ae0e8593ca5a35157476aa25 (patch)
treed37ddfbad86c4f83f4ef0d6a898628d81c97e836 /usr.bin/netstat/main.c
parenta7d847ab82d32870725d33be42c88570b97651af (diff)
* netstat -r [-n] now prints netmasks for network routes (in XXX/24 format).
* beginnings of a -v (verbose) option.
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 6ceb6764e2c..f035fca2c46 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.12 1997/07/23 04:38:33 denny Exp $ */
+/* $OpenBSD: main.c,v 1.13 1998/02/26 10:06:07 peter Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ char copyright[] =
#if 0
static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94";
#else
-static char *rcsid = "$OpenBSD: main.c,v 1.12 1997/07/23 04:38:33 denny Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.13 1998/02/26 10:06:07 peter Exp $";
#endif
#endif /* not lint */
@@ -248,7 +248,7 @@ main(argc, argv)
af = AF_UNSPEC;
- while ((ch = getopt(argc, argv, "Aadf:ghI:iM:mN:np:rstuw:")) != -1)
+ while ((ch = getopt(argc, argv, "Aadf:ghI:iM:mN:np:rstuvw:")) != -1)
switch(ch) {
case 'A':
Aflag = 1;
@@ -326,6 +326,9 @@ main(argc, argv)
case 'u':
af = AF_UNIX;
break;
+ case 'v':
+ vflag = 1;
+ break;
case 'w':
interval = atoi(optarg);
iflag = 1;