From be51713474e015eea2ed268348d26fb6b06e3105 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 1 Sep 2015 16:52:27 +0100 Subject: [PATCH] [pxe] Populate ciaddr in fake PXE Boot Server ACK packet We currently do not populate the ciaddr field in the constructed PXE Boot Server ACK packet. This causes a WDS server to respond with a broadcast packet, which is then ignored by wdsmgfw.efi since it does not match the specified IP address filter. Fix by populating ciaddr within the constructed PXE Boot Server ACK packet. Signed-off-by: Michael Brown --- src/net/fakedhcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/fakedhcp.c b/src/net/fakedhcp.c index b6c456a5..009b12c5 100644 --- a/src/net/fakedhcp.c +++ b/src/net/fakedhcp.c @@ -199,6 +199,10 @@ int create_fakepxebsack ( struct net_device *netdev, return rc; } + /* Populate ciaddr */ + fetch_ipv4_setting ( netdev_settings ( netdev ), &ip_setting, + &dhcppkt.dhcphdr->ciaddr ); + /* Merge in ProxyDHCP options */ if ( proxy_settings && ( ( rc = copy_settings ( &dhcppkt, proxy_settings ) ) != 0 ) ) {