Skip to content

Commit

Permalink
[pxe] Populate ciaddr in fake PXE Boot Server ACK packet
Browse files Browse the repository at this point in the history
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 <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Sep 1, 2015
1 parent 355da7b commit be51713
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net/fakedhcp.c
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit be51713

Please sign in to comment.