david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[pxe] Fall back to broadcast if no boot server multicast address exists

fetch_ipv4_setting() will zero its IPv4 address argument if no such
setting exists, rather than leaving it untouched.
This commit is contained in:
Michael Brown 2009-02-03 02:44:15 +00:00
parent dbe84c5aad
commit 4b276b8df9
1 changed files with 2 additions and 1 deletions

View File

@ -95,8 +95,9 @@ static int pxe_menu_parse ( struct pxe_menu **menu ) {
/* Fetch relevant settings */
tmp_setting.tag = DHCP_PXE_BOOT_SERVER_MCAST;
server.s_addr = INADDR_BROADCAST;
fetch_ipv4_setting ( NULL, &tmp_setting, &server );
if ( ! server.s_addr )
server.s_addr = INADDR_BROADCAST;
tmp_setting.tag = DHCP_PXE_BOOT_MENU_PROMPT;
fetch_setting ( NULL, &tmp_setting, &prompt, sizeof ( prompt ) );
tmp_setting.tag = DHCP_PXE_BOOT_MENU;