aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 10:20:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 10:20:27 +0200
commit47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f (patch)
treea84db8f0215526b9728f2f2b94214100e853a98c /networking/udhcp/dhcpc.c
parent1f363a086779152ab04067e81484b8bb69e4af72 (diff)
downloadbusybox-w32-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.tar.gz
busybox-w32-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.tar.bz2
busybox-w32-47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f.zip
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 2dd3cd077..ab34b0472 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -553,9 +553,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
553 * the client MUST send a DHCPDECLINE message to the server and restarts 553 * the client MUST send a DHCPDECLINE message to the server and restarts
554 * the configuration process..." */ 554 * the configuration process..." */
555 if (!arpping(packet.yiaddr, 555 if (!arpping(packet.yiaddr,
556 (uint32_t) 0, 556 NULL,
557 client_config.arp, 557 (uint32_t) 0,
558 client_config.interface) 558 client_config.arp,
559 client_config.interface)
559 ) { 560 ) {
560 bb_info_msg("offered address is in use " 561 bb_info_msg("offered address is in use "
561 "(got ARP reply), declining"); 562 "(got ARP reply), declining");