david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[dhcp] Ignore ProxyDHCPACKs without PXE options

Suggested-by: Wissam Shoukair <wissams@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2015-08-18 17:18:38 +01:00
parent 60e2b71471
commit 0a34c2aab9
1 changed files with 4 additions and 0 deletions

View File

@ -670,6 +670,8 @@ static void dhcp_proxy_rx ( struct dhcp_session *dhcp,
DBGC ( dhcp, " (%s/", inet_ntoa ( server_id ) );
DBGC ( dhcp, "%s)", inet_ntoa ( pseudo_id ) );
}
if ( dhcp_has_pxeopts ( dhcppkt ) )
DBGC ( dhcp, " pxe" );
DBGC ( dhcp, "\n" );
/* Filter out unacceptable responses */
@ -679,6 +681,8 @@ static void dhcp_proxy_rx ( struct dhcp_session *dhcp,
return;
if ( ( pseudo_id.s_addr != dhcp->proxy_server.s_addr ) )
return;
if ( ! dhcp_has_pxeopts ( dhcppkt ) )
return;
/* Register settings */
if ( ( rc = register_settings ( settings, NULL,