mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 23:59:22 +00:00
2004-05-20 Damian Ivereigh <damian@cisco.com>
* netboot/main.c: Fixed bootp only code so that options
work properly. This fix is obvious when compared with the
DHCP code.
This commit is contained in:
1 parent
12ce4272ee
commit
31def8459d
3 files changed
+9
-1
No files matched your search
+2
-1
@@ -881,7 +881,8 @@ await_reply (int type, int ival, void *ptr, int timeout)
|
||||
+ sizeof (struct udphdr))];
|
||||
if (type == AWAIT_BOOTP
|
||||
#ifdef NO_DHCP_SUPPORT
|
||||
&& (nic.packetlen >= (ETH_HLEN + sizeof (struct bootp_t)))
|
||||
&& (nic.packetlen
|
||||
>= (ETH_HLEN + sizeof (struct bootp_t) - BOOTP_VENDOR_LEN))
|
||||
#else
|
||||
&& (nic.packetlen
|
||||
>= (ETH_HLEN + sizeof (struct bootp_t) - DHCP_OPT_LEN))
|
||||
|
||||
Reference in new issue
Block a user