[klibc] [PATCH 2/2] ipconfig: Fix null ciaddr on DHCPREQUEST during SELECTING state

Louis Rilling louis.rilling at kerlabs.com
Tue Mar 16 07:16:33 PDT 2010


Commit cfc8d649a959f845983aae4c0fc33a0a0c995c92
    Author: maximilian attems <max at stro.at>
    Date:   Fri Sep 5 22:48:27 2008 +0200

    [klibc] ipconfig: set null ciaddr on DHCPREQUEST during SELECTING state

set ciaddr to INADDR_NONE instead of INADDR_ANY, which makes dhcpd3 reply by
NACK.

Fix this.

Signed-off-by: Louis Rilling <louis.rilling at kerlabs.com>
---
 usr/kinit/ipconfig/dhcp_proto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index d6990ac..3253490 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -175,7 +175,7 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
 	bootp.htype	= dev->hwtype;
 	bootp.hlen	= dev->hwlen;
 	bootp.xid	= dev->bootp.xid;
-	bootp.ciaddr	= INADDR_NONE;
+	bootp.ciaddr	= INADDR_ANY;
 	bootp.yiaddr	= dev->ip_addr;
 	bootp.giaddr	= INADDR_ANY;
 	bootp.secs	= htons(time(NULL) - dev->open_time);
-- 
1.5.6.5



More information about the klibc mailing list