VirtualBox

Changeset 2275 in vbox for trunk/src


Ignore:
Timestamp:
Apr 20, 2007 2:06:54 PM (18 years ago)
Author:
vboxsync
Message:

Correctly handle PXE menus with 0 boot servers for an entry. Use the
already found TFTP server in this case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/Etherboot-src/core/nic.c

    r1 r2275  
    10021002                return 0;
    10031003#ifdef PXE_DHCP_STRICT
    1004 #ifndef VBOX /* Disabled, but it would never be active, as we don't use 4011 as source port. */
    10051004        /* in principle one could check here:
    10061005         *
     
    10191018                return 1;
    10201019        }
    1021 #endif /* !VBOX */
    10221020#endif /* PXE_DHCP_STRICT */
    10231021#ifndef VBOX /* This fails for an ACK from a DHCP server that doesn't know the next server IP address. Annoying, as this is the default for DHCP with RIS ProxyDHCP. */
     
    18961894                pxe_boot_menu[i].id = item;
    18971895        }
     1896#ifndef VBOX
    18981897        memcpy(&pxe_boot_menu[i].ip, p + 3, sizeof(in_addr));
     1898#else /* VBOX */
     1899        if (*(p + 2) > 0)
     1900            memcpy(&pxe_boot_menu[i].ip, p + 3, sizeof(in_addr));
     1901        else
     1902            pxe_boot_menu[i].ip.s_addr = arptable[ARP_SERVER].ipaddr.s_addr;
     1903#endif /* VBOX */
    18991904}
    19001905
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette