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-29 00:34:54 +0000 |
commit | 12e9c689246e7ac81536dbf9583478f4b8823332 (patch) | |
tree | 832658b3fb1778712ef2b20c9c324df9bb50b197 | |
parent | d1a34ebb939b0c56d101fd0dee5298396ac030fd (diff) | |
download | src-12e9c689246e7ac81536dbf9583478f4b8823332.tar.gz src-12e9c689246e7ac81536dbf9583478f4b8823332.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 40060b3f8e97..22b16fe373ed 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 |