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:
okuji committed 2004-05-20 22:17:27 +00:00
1 parent 12ce4272ee
commit 31def8459d
3 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -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))