[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:
parent
60e2b71471
commit
0a34c2aab9
|
@ -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 ( server_id ) );
|
||||||
DBGC ( dhcp, "%s)", inet_ntoa ( pseudo_id ) );
|
DBGC ( dhcp, "%s)", inet_ntoa ( pseudo_id ) );
|
||||||
}
|
}
|
||||||
|
if ( dhcp_has_pxeopts ( dhcppkt ) )
|
||||||
|
DBGC ( dhcp, " pxe" );
|
||||||
DBGC ( dhcp, "\n" );
|
DBGC ( dhcp, "\n" );
|
||||||
|
|
||||||
/* Filter out unacceptable responses */
|
/* Filter out unacceptable responses */
|
||||||
|
@ -679,6 +681,8 @@ static void dhcp_proxy_rx ( struct dhcp_session *dhcp,
|
||||||
return;
|
return;
|
||||||
if ( ( pseudo_id.s_addr != dhcp->proxy_server.s_addr ) )
|
if ( ( pseudo_id.s_addr != dhcp->proxy_server.s_addr ) )
|
||||||
return;
|
return;
|
||||||
|
if ( ! dhcp_has_pxeopts ( dhcppkt ) )
|
||||||
|
return;
|
||||||
|
|
||||||
/* Register settings */
|
/* Register settings */
|
||||||
if ( ( rc = register_settings ( settings, NULL,
|
if ( ( rc = register_settings ( settings, NULL,
|
||||||
|
|
Reference in New Issue