Alan Somers 9ce201f2ee ping: fix parsing of options including '4' and '6'
ping uses a two-pass option parser.  The first pass determines whether
ipv4 or ipv6 is desired, and the second parses the rest of the options.
But the first pass wrongly detects a '4' or '6' in an option's value as
a request to use ipv6 or ipv6 respectively, for example in an invocation
like "ping -c6 1.2.3.4".

Fix this confusion by including all options in the first round of
parsing, but ignoring those unrelated to ipv4/ipv6 selection.

PR:		258048
Reported by:	ghuckriede@blackberry.com
Submitted by:	ghuckriede@blackberry.com
MFC after:	2 weeks
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D32344
2021-10-20 18:05:43 -06:00
..
2019-08-13 20:06:55 +00:00
2019-11-21 01:24:49 +00:00
2019-11-21 01:24:49 +00:00
2019-08-13 20:06:55 +00:00
2020-10-09 14:03:45 +00:00
2021-10-07 15:52:58 -07:00
2021-04-06 16:32:57 -07:00
2021-03-28 14:45:05 -04:00
2021-09-08 17:17:50 +02:00
2021-02-11 06:03:53 +01:00
2021-08-14 14:48:39 +02:00
2021-09-11 20:04:52 +08:00
2020-10-09 14:03:45 +00:00
2021-04-17 23:16:17 +02:00
2020-11-26 04:29:30 +00:00
2021-07-28 09:35:09 -07:00
2019-12-11 17:37:53 +00:00
2020-07-05 13:08:17 +00:00