summaryrefslogtreecommitdiffstats
path: root/sbin/ping6
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
committerru <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
commit719be5d34133092608f2cb4b6a8acd6cf2c403c6 (patch)
treed6dac94023a6f3bfab88fb797e8cd641b0e912b2 /sbin/ping6
parent7b37822a694ba18e94110b97e574dc91753e1d6c (diff)
downloadFreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.zip
FreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.tar.gz
Sync program's usage() with manpage's SYNOPSIS.
Diffstat (limited to 'sbin/ping6')
-rw-r--r--sbin/ping6/ping6.86
-rw-r--r--sbin/ping6/ping6.c29
2 files changed, 20 insertions, 15 deletions
diff --git a/sbin/ping6/ping6.8 b/sbin/ping6/ping6.8
index 686bd27..89a8168 100644
--- a/sbin/ping6/ping6.8
+++ b/sbin/ping6/ping6.8
@@ -68,13 +68,13 @@ packets to network hosts
.Op Fl l Ar preload
.Ek
.Bk -words
-.Op Fl p Ar pattern
-.Ek
-.Bk -words
.\" new ipsec
.Op Fl P Ar policy
.Ek
.Bk -words
+.Op Fl p Ar pattern
+.Ek
+.Bk -words
.Op Fl S Ar sourceaddr
.Ek
.Bk -words
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 9310088..d9c2f82 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -2702,21 +2702,26 @@ void
usage()
{
(void)fprintf(stderr,
- "usage: ping6 [-dfH"
+#if defined(IPSEC) && !defined(IPSEC_POLICY_IPSEC)
+ "A"
+#endif
+ "usage: ping6 [-"
+ "d"
+#if defined(IPSEC) && !defined(IPSEC_POLICY_IPSEC)
+ "E"
+#endif
+ "fH"
#ifdef IPV6_USE_MIN_MTU
"m"
#endif
- "nNqtvwW"
-#ifdef IPSEC
-#ifdef IPSEC_POLICY_IPSEC
- "] [-P policy"
-#else
- "AE"
-#endif
+ "nNqtvwW] "
+ "[-a addrtype] [-b bufsiz] [-c count] [-g gateway]\n"
+ " [-h hoplimit] [-I interface] [-i wait] [-l preload]"
+#if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC)
+ " [-P policy]"
#endif
- "] [-a [aAclsg]] [-b sockbufsiz] [-c count] \n"
- "\t[-I interface] [-i wait] [-l preload] [-p pattern] "
- "[-S sourceaddr]\n"
- "\t[-s packetsize] [-h hoplimit] [hops...] [-g gateway] host\n");
+ "\n"
+ " [-p pattern] [-S sourceaddr] [-s packetsize] "
+ "[hops ...] host\n");
exit(1);
}
OpenPOWER on IntegriCloud