[BUG][PATCH] networking/arp.c
Kuleshov Aleksey
rndfax at yandex.ru
Sun Dec 23 21:29:53 UTC 2012
Good morning!
arp applet doesn't know about <H> parameter.
I supposed <t> parameter is related to <H> as alias.
--- networking/arp.c 2012-06-26 17:35:45.000000000 +0400
+++ networking/arp.c 2012-12-24 01:04:16.000000000 +0400
@@ -29,7 +29,7 @@
//usage: "\n -i IF Network interface"
//usage: "\n -D Read <hwaddr> from given device"
//usage: "\n -A,-p AF Protocol family"
-//usage: "\n -H HWTYPE Hardware address type"
+//usage: "\n -H,t HWTYPE Hardware address type"
#include "libbb.h"
#include "inet_common.h"
@@ -496,7 +496,7 @@
if (ap == NULL)
bb_error_msg_and_die("%s: unknown %s", protocol, "address family");
}
- if (opts & (ARP_OPT_A | ARP_OPT_p)) {
+ if (opts & (ARP_OPT_H | ARP_OPT_t)) {
hw = get_hwtype(hw_type);
if (hw == NULL)
bb_error_msg_and_die("%s: unknown %s", hw_type, "hardware type");
More information about the busybox
mailing list