diff options
author | Joshua Oreman <oremanj@rwcr.net> | 2009-11-03 13:31:12 -0500 |
---|---|---|
committer | Marty Connor <mdc@etherboot.org> | 2010-01-14 18:33:31 -0500 |
commit | 04e4a4f69520422d7ff7f02ba0f6d9a9dd084ee2 (patch) | |
tree | abe2c399f57a57b779609b3eb36edf0e8720ed03 | |
parent | eebe98ea60cab124e72b57089a61781c9d40a01d (diff) | |
download | ipxe-04e4a4f69520422d7ff7f02ba0f6d9a9dd084ee2.tar.gz |
[dhcp] Accept ProxyDHCP replies of type DHCPOFFER
The PXE standard provides examples of ProxyDHCP responses being encoded both
as type DHCPOFFER and DHCPACK, but currently we only accept DHCPACKs. Since
there are PXE servers in existence that respond to ProxyDHCPREQUESTs with
DHCPOFFERs, modify gPXE's ProxyDHCP pruning logic to treat both types of
responses equally.
Signed-off-by: Marty Connor <mdc@etherboot.org>
-rw-r--r-- | src/net/udp/dhcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index b0dd95292..ac4f82c2c 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -627,7 +627,7 @@ static void dhcp_proxy_rx ( struct dhcp_session *dhcp, /* Filter out unacceptable responses */ if ( peer->sin_port != dhcp->proxy_port ) return; - if ( msgtype != DHCPACK ) + if ( ( msgtype != DHCPOFFER ) && ( msgtype != DHCPACK ) ) return; if ( server_id.s_addr /* Linux PXE server omits server ID */ && ( server_id.s_addr != dhcp->proxy_server.s_addr ) ) |