diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-08-18 17:18:38 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-08-18 17:18:38 +0100 |
commit | 0a34c2aab9951bf571a5093a5a8d0f6d1f5ca107 (patch) | |
tree | a174307fe44fa434181c013022018bf949309553 | |
parent | 60e2b71471aabce2b289320dd4322a994c772ce9 (diff) | |
download | ipxe-0a34c2aab9951bf571a5093a5a8d0f6d1f5ca107.zip ipxe-0a34c2aab9951bf571a5093a5a8d0f6d1f5ca107.tar.gz ipxe-0a34c2aab9951bf571a5093a5a8d0f6d1f5ca107.tar.bz2 |
[dhcp] Ignore ProxyDHCPACKs without PXE options
Suggested-by: Wissam Shoukair <wissams@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/net/udp/dhcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 7d5237b..aed5ee3 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -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, |