mirror of https://github.com/ipxe/ipxe.git
[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.pull/1/head
parent
dbe84c5aad
commit
4b276b8df9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue