]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2004-05-20 Damian Ivereigh <damian@cisco.com>
authorokuji <okuji@localhost>
Thu, 20 May 2004 22:17:27 +0000 (22:17 +0000)
committerokuji <okuji@localhost>
Thu, 20 May 2004 22:17:27 +0000 (22:17 +0000)
        * netboot/main.c: Fixed bootp only code so that options
        work properly. This fix is obvious when compared with the
        DHCP code.

ChangeLog
THANKS
netboot/main.c

index 2d6319368ce8958136a422f508941d3b8b1f0994..c42bd08a9c6f16dca99fec8e28cfd6ae9644112b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2004-05-17  Pavel Roskin  <proski@gnu.org>
 
        * stage2/char_io.c (safe_parse_maxint): Disable for stage 1.5.
diff --git a/THANKS b/THANKS
index f43fe1aca207ecc3a0bfd62d35a04e3305d4d8fa..0403983585c53965f5661a5f1d636cd4fccaf800 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -25,6 +25,7 @@ Cedric Ware <ware@com.enst.fr>
 Chip Salzenberg <chip@valinux.com>
 Christian Jones <chjones@aleph0.com>
 Christoph Plattner <Christoph.Plattner@dot.at>
+Damian Ivereigh <damian@cisco.com>
 Dan J. Walters <djw@cs.utexas.edu>
 Daniel Farrell <s2108287@student.rmit.edu.au>
 Daniel Pittman <daniel@rimspace.net>
index 140cbea310c1c06312064d9fa146d1b906e4fd07..82759b6cc86a9c16d14eaacb89da376d8f079b5a 100644 (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))