9
0
Fork 0

dhcp: fix request packet

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

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Bénard 2015-01-29 00:37:33 +01:00 committed by Sascha Hauer
parent 1f9cf67ab0
commit ea0a3b7da8
1 changed files with 1 additions and 3 deletions

View File

@ -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