summaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenys Vlasenko2009-06-16 10:20:27 +0200
committerDenys Vlasenko2009-06-16 10:20:27 +0200
commit47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f (patch)
treea84db8f0215526b9728f2f2b94214100e853a98c /networking/udhcp/dhcpc.c
parent1f363a086779152ab04067e81484b8bb69e4af72 (diff)
downloadbusybox-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.zip
busybox-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.tar.gz
udhcpd: don't fail ARP check if returned MAC matches client's one
Also, do not unicast replies to yiaddr. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 2dd3cd0..ab34b04 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -553,9 +553,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
* the client MUST send a DHCPDECLINE message to the server and restarts
* the configuration process..." */
if (!arpping(packet.yiaddr,
- (uint32_t) 0,
- client_config.arp,
- client_config.interface)
+ NULL,
+ (uint32_t) 0,
+ client_config.arp,
+ client_config.interface)
) {
bb_info_msg("offered address is in use "
"(got ARP reply), declining");