summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-03-04 21:32:27 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-03-04 21:32:27 +0000
commitad2045abd99a04f3b4fef4fc46b297412bc27aca (patch)
tree95663657efd09b91016b58db5d9ca653df73939a /usr.bin/netstat/main.c
parent3f4a1931a8bc58b0c7621f3d1a517a9e161e148e (diff)
when showing interface stats, combine the queue drops with errors as fails
if you want to see errors or queue drops on their own, use -e or -d respectively. ok claudio@ deraadt@
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 17c889768a2..ebe83fe66d2 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.113 2018/08/13 14:36:54 mpi Exp $ */
+/* $OpenBSD: main.c,v 1.114 2019/03/04 21:32:26 dlg Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -129,7 +129,7 @@ main(int argc, char *argv[])
tableid = getrtable();
while ((ch = getopt(argc, argv,
- "AaBbc:dFf:ghI:iLlM:mN:np:P:qrsT:tuvW:w:")) != -1)
+ "AaBbc:deFf:ghI:iLlM:mN:np:P:qrsT:tuvW:w:")) != -1)
switch (ch) {
case 'A':
Aflag = 1;
@@ -149,7 +149,10 @@ main(int argc, char *argv[])
errx(1, "count is %s", errstr);
break;
case 'd':
- dflag = 1;
+ dflag = IF_SHOW_DROP;
+ break;
+ case 'e':
+ dflag = IF_SHOW_ERRS;
break;
case 'F':
Fflag = 1;