summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2017-08-12 03:21:02 +0000
committerbenno <benno@openbsd.org>2017-08-12 03:21:02 +0000
commit6b9bc89db416a66279d2b3758a1f6e1f320c1be1 (patch)
tree6098ae8be4ec56cf2686b6ee8ce34bc54f37c3d0 /usr.bin/netstat/main.c
parentImprove snps,dwc3 support. Enough to make the USB3 controller on the (diff)
downloadwireguard-openbsd-6b9bc89db416a66279d2b3758a1f6e1f320c1be1.tar.xz
wireguard-openbsd-6b9bc89db416a66279d2b3758a1f6e1f320c1be1.zip
add option -l to show only listening sockets (for tcp)
feedback and ok awhile ago bluhm@ job@
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index e534b166634..f2310f3dffd 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.111 2016/12/22 11:04:44 rzalamena Exp $ */
+/* $OpenBSD: main.c,v 1.112 2017/08/12 03:21:02 benno Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -128,7 +128,7 @@ main(int argc, char *argv[])
tableid = getrtable();
while ((ch = getopt(argc, argv,
- "AaBbc:dFf:ghI:ilM:mN:np:P:qrsT:tuvW:w:")) != -1)
+ "AaBbc:dFf:ghI:iLlM:mN:np:P:qrsT:tuvW:w:")) != -1)
switch (ch) {
case 'A':
Aflag = 1;
@@ -441,7 +441,7 @@ static void
usage(void)
{
(void)fprintf(stderr,
- "usage: %s [-AaBn] [-f address_family] [-M core] [-N system]\n"
+ "usage: %s [-AaBln] [-f address_family] [-M core] [-N system]\n"
" %s [-bdFgilmnqrstu] [-f address_family] [-M core] [-N system]\n"
" [-T tableid]\n"
" %s [-bdhn] [-c count] [-I interface] [-M core] [-N system] [-w wait]\n"