aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/arping.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/arping.c b/networking/arping.c
index 7618e9630..6bcbc7044 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -279,13 +279,14 @@ int arping_main(int argc, char **argv)
279 { 279 {
280 unsigned long opt; 280 unsigned long opt;
281 char *_count, *_timeout, *_device; 281 char *_count, *_timeout, *_device;
282
283 /* Dad also sets quit_on_reply.
284 * Advert also sets unsolicited.
285 */
286 bb_opt_complementally = "Df:AU";
282 opt = bb_getopt_ulflags(argc, argv, "DUAqfbc:w:i:s:", 287 opt = bb_getopt_ulflags(argc, argv, "DUAqfbc:w:i:s:",
283 &_count, &_timeout, &_device); 288 &_count, &_timeout, &_device);
284 cfg |= opt & 63; /* set respective flags */ 289 cfg |= opt & 63; /* set respective flags */
285 if (opt & 1) /* Dad also sets quit_on_reply */
286 cfg |= quit_on_reply;
287 if (opt & 4) /* Advert also sets unsolicited */
288 cfg |= unsolicited;
289 if (opt & 64) /* count */ 290 if (opt & 64) /* count */
290 count = atoi(_count); 291 count = atoi(_count);
291 if (opt & 128) /* timeout */ 292 if (opt & 128) /* timeout */