Merge ping6 to ping
The front end code parses only -4 and -6 options, and decides whether to call ping or ping6.
Submitted by: Ján Sučan <sucanjan@gmail.com>
Sponsored by: Google LLC (Google Summer of Code 2019)
Differential D21377
ping: merge ping6 to ping asomers on Aug 23 2019, 2:09 PM. Authored by Tags None Referenced Files
Details
Merge ping6 to ping The front end code parses only -4 and -6 options, and decides whether to call ping or ping6. Submitted by: Ján Sučan <sucanjan@gmail.com>
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes
Comment Actions Now it doesn't even build: /usr/home/somers/freebsd/base/head/sbin/ping/main.c:249:1: error: redefinition of 'main' main(int argc, char *argv[]) ^ /usr/home/somers/freebsd/base/head/sbin/ping/main.c:59:1: note: previous definition is here main(int argc, char *argv[]) ^ /usr/home/somers/freebsd/base/head/sbin/ping/main.c:331:1: error: redefinition of 'usage' usage(void) ^ /usr/home/somers/freebsd/base/head/sbin/ping/main.c:141:1: note: previous definition is here usage(void) ^ 2 errors generated. Comment Actions It will take me some time to find out why. On my system it builds. Could you please send me your main.c? It's interesting that there are double definitions of the functions. Comment Actions Sorry, my bad. It's a side effect of arcanist. If you apply a patch, revert the directory, and reapply the patch, any newly created file gets doubled. You need to rm newly created files after "svn revert". I forgot to do that.
Comment Actions You still need to add entries to UPDATING and ObsoleteFiles.inc. Other than that, it looks good.
Comment Actions Add entries to UPDATING and ObsoleteFiles.inc. Comment Actions Is there any interest to get this into -CURRENT? I am working on a few small ping updates that could be benefit from getting this into tree first. Comment Actions Thanks for reminding me, @gbe . I think I'll have time to work on this on Halloween weekend. Feel free to remind me if I haven't done anything by November. Comment Actions Arcanist won't let me update the review because of this bug: https://secure.phabricator.com/T10608 . But the required changes are small enough that I don't think they need additional review. There were a few related to rebasing. And there were a few changes required to fix the tests. I'll commit them if the tinderbox build passes. |