diff options
author | ru <ru@FreeBSD.org> | 2005-02-10 09:19:34 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-10 09:19:34 +0000 |
commit | 719be5d34133092608f2cb4b6a8acd6cf2c403c6 (patch) | |
tree | d6dac94023a6f3bfab88fb797e8cd641b0e912b2 /sbin/ping6/ping6.c | |
parent | 7b37822a694ba18e94110b97e574dc91753e1d6c (diff) | |
download | FreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.zip FreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.tar.gz |
Sync program's usage() with manpage's SYNOPSIS.
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r-- | sbin/ping6/ping6.c | 29 |
1 files changed, 17 insertions, 12 deletions
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); } |