diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2023-09-19 08:47:11 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2023-09-22 07:50:32 +0000 |
commit | a944ba1225c5c26ca2698e9c172d2df1026a8e0f (patch) | |
tree | 3f703fd6f11d914e83afdfba02cb8b74c5908262 | |
parent | 237b0c5b22c95683c2367ef0a82f54c309309db4 (diff) | |
download | src-a944ba1225c5c26ca2698e9c172d2df1026a8e0f.tar.gz src-a944ba1225c5c26ca2698e9c172d2df1026a8e0f.zip |
ping: The -C option is also supported for IPv6.
MFC after: 3 days
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: rscheff, allanjude
Differential Revision: https://reviews.freebsd.org/D41881
(cherry picked from commit a2d1360142f609485c9301df08cc99140743ef2b)
-rw-r--r-- | sbin/ping/main.c | 2 | ||||
-rw-r--r-- | sbin/ping/ping.8 | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ping/main.c b/sbin/ping/main.c index 47d20f569008..6321178e1228 100644 --- a/sbin/ping/main.c +++ b/sbin/ping/main.c @@ -211,7 +211,7 @@ usage(void) "Z" #endif "] " - "[-b bufsiz] [-c count] [-e gateway]\n" + "[-b bufsiz] [-C pcp] [-c count] [-e gateway]\n" "\t [-I interface] [-i wait] [-k addrtype] [-l preload] " "[-m hoplimit]\n" "\t [-p pattern]" diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8 index 7419aef51dfa..34ffc98c3a40 100644 --- a/sbin/ping/ping.8 +++ b/sbin/ping/ping.8 @@ -27,7 +27,7 @@ .\" .\" @(#)ping.8 8.2 (Berkeley) 12/11/93 .\" -.Dd November 20, 2022 +.Dd September 15, 2023 .Dt PING 8 .Os .Sh NAME @@ -81,6 +81,7 @@ packets to network hosts .Op Fl 6AaDdEfHNnOoquvYyZ .Op Fl .\& Ns Ar chars .Op Fl b Ar bufsiz +.Op Fl C Ar pcp .Op Fl c Ar count .Op Fl e Ar gateway .Op Fl I Ar interface |