[PATCH 2/3] dhcp: fix request packet
Eric Bénard
eric at eukrea.com
Wed Jan 28 15:37:33 PST 2015
we are not supposed to fill ciaddr, yiaddr and siaddr in the request packet.
Signed-off-by: Eric Bénard <eric at eukrea.com>
---
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
More information about the barebox
mailing list