浏览代码

[dhcp] Ignore DHCPACKs containing incorrect IP addresses

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 年前
父节点
当前提交
ba6aca3424
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/net/udp/dhcp.c

+ 2
- 0
src/net/udp/dhcp.c 查看文件

@@ -528,6 +528,8 @@ static void dhcp_request_rx ( struct dhcp_session *dhcp,
528 528
 		return;
529 529
 	if ( server_id.s_addr != dhcp->server.s_addr )
530 530
 		return;
531
+	if ( ip.s_addr != dhcp->offer.s_addr )
532
+		return;
531 533
 
532 534
 	/* Record assigned address */
533 535
 	dhcp->local.sin_addr = ip;

正在加载...
取消
保存