Skip to content

Commit

Permalink
[dhcp] Ignore ProxyDHCPACKs without PXE options
Browse files Browse the repository at this point in the history
Suggested-by: Wissam Shoukair <wissams@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Aug 18, 2015
1 parent 60e2b71 commit 0a34c2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net/udp/dhcp.c
Expand Up @@ -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 */
Expand All @@ -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,
Expand Down

0 comments on commit 0a34c2a

Please sign in to comment.