we are not supposed to fill ciaddr, yiaddr and siaddr in the request packet.

Signed-off-by: Eric Bénard <[email protected]>
---
 net/dhcp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/dhcp.c b/net/dhcp.c
index 78440dd..7f9b989 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -559,9 +559,7 @@ static void dhcp_send_request_packet(struct bootp *bp_offer)
        bp->bp_hops = 0;
        /* FIXME what is this? */
 //     bp->bp_secs = htons(get_timer(0) / CFG_HZ);
-       net_copy_ip(&bp->bp_ciaddr, &bp_offer->bp_ciaddr); /* both in network 
byte order */
-       net_copy_ip(&bp->bp_yiaddr, &bp_offer->bp_yiaddr);
-       net_copy_ip(&bp->bp_siaddr, &bp_offer->bp_siaddr);
+
        /*
         * RFC3046 requires Relay Agents to discard packets with
         * nonzero and offered giaddr
-- 
1.9.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to