summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-11 15:21:36 +0000
committerru <ru@FreeBSD.org>2001-09-11 15:21:36 +0000
commitad39f94bd08d60fe6e100c8850ffabc4c09ae3a8 (patch)
treed14cbed82db3f5cbbb2f0a2af5cdf5a8fc17ed1b /usr.bin/netstat/main.c
parent85e4b9102892a976438dccfcc264deee2b0f0a29 (diff)
downloadFreeBSD-src-ad39f94bd08d60fe6e100c8850ffabc4c09ae3a8.zip
FreeBSD-src-ad39f94bd08d60fe6e100c8850ffabc4c09ae3a8.tar.gz
Update usage() to match reality.
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index d2242d4..46e03f5 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -751,11 +751,18 @@ name2protox(char *name)
static void
usage(void)
{
- (void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n",
-"usage: netstat [-AaLlnW] [-f address_family] [-M core] [-N system]",
-" netstat [-abdgilnrsS] [-f address_family] [-M core] [-N system]",
-" netstat [-bdn] [-I interface] [-M core] [-N system] [-w wait]",
+ (void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
+"usage: netstat [-AaLnSW] [-f protocol_family | -p protocol]\n"
+" [-M core] [-N system]",
+" netstat -i | -I interface [-abdnt] [-M core] [-N system]",
+" netstat -w wait [-I interface] [-d] [-M core] [-N system]",
+" netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core]",
+" netstat -i | -I interface -s [-f protocol_family | -p protocol]\n"
+" [-M core] [-N system]",
" netstat -m [-M core] [-N system]",
-" netstat [-M core] [-N system] [-p protocol]");
+" netstat -r [-AanW] [-f address_family] [-M core] [-N system]",
+" netstat -rs [-s] [-M core] [-N system]",
+" netstat -g [-W] [-f address_family] [-M core] [-N system]",
+" netstat -gs [-s] [-f address_family] [-M core] [-N system]");
exit(1);
}
OpenPOWER on IntegriCloud