X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=networking%2Farping.c;h=dbfd75ef52da712393cca1c81c13d8cb31a84560;hb=16aa7a73c40ba5dfaabaedb8a5533619cb8b6cb6;hp=6f6b59cfba73be911be31bd9b4459ed1464d61a5;hpb=11872cab325f99b3719bc0416401a656556d6230;p=oweals%2Fbusybox.git diff --git a/networking/arping.c b/networking/arping.c index 6f6b59cfb..dbfd75ef5 100644 --- a/networking/arping.c +++ b/networking/arping.c @@ -6,6 +6,22 @@ * Busybox port: Nick Fedchik */ +//usage:#define arping_trivial_usage +//usage: "[-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP" +//usage:#define arping_full_usage "\n\n" +//usage: "Send ARP requests/replies\n" +//usage: "\n -f Quit on first ARP reply" +//usage: "\n -q Quiet" +//usage: "\n -b Keep broadcasting, don't go unicast" +//usage: "\n -D Duplicated address detection mode" +//usage: "\n -U Unsolicited ARP mode, update your neighbors" +//usage: "\n -A ARP answer mode, update your neighbors" +//usage: "\n -c N Stop after sending N ARP requests" +//usage: "\n -w TIMEOUT Time to wait for ARP reply, seconds" +//usage: "\n -I IFACE Interface to use (default eth0)" +//usage: "\n -s SRC_IP Sender IP address" +//usage: "\n DST_IP Target IP address" + #include #include #include @@ -268,7 +284,6 @@ int arping_main(int argc UNUSED_PARAM, char **argv) // Need to remove SUID_NEVER from applets.h for this to work //xsetuid(getuid()); - err_str = xasprintf("interface %s %%s", device); { unsigned opt; char *str_timeout; @@ -286,7 +301,7 @@ int arping_main(int argc UNUSED_PARAM, char **argv) } target = argv[optind]; - + err_str = xasprintf("interface %s %%s", device); xfunc_error_retval = 2; {