]> git.ipfire.org Git - thirdparty/grub.git/commit
bootp: ignore gateway_ip (relay) field.
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 17 May 2015 19:38:30 +0000 (22:38 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 17 May 2015 19:38:30 +0000 (22:38 +0300)
commita666c8bd18aee7bf1b202b6b8c0ffe953bd2c1b6
tree028d93fc4356f42afd7757636a2b277e47ade63e
parent2498dc7a3aee638215ad47899031496b50633d55
bootp: ignore gateway_ip (relay) field.

From RFC1542:

   The 'giaddr' field is rather poorly named.  It exists to facilitate
   the transfer of BOOTREQUEST messages from a client, through BOOTP
   relay agents, to servers on different networks than the client.
   Similarly, it facilitates the delivery of BOOTREPLY messages from the
   servers, through BOOTP relay agents, back to the client.  In no case
   does it represent a general IP router to be used by the client.  A
   BOOTP client MUST set the 'giaddr' field to zero (0.0.0.0) in all
   BOOTREQUEST messages it generates.

   A BOOTP client MUST NOT interpret the 'giaddr' field of a BOOTREPLY
   message to be the IP address of an IP router.  A BOOTP client SHOULD
   completely ignore the contents of the 'giaddr' field in BOOTREPLY
   messages.

Leave code ifdef'd out for the time being in case we see regression.

Suggested by: Rink Springer <rink@rink.nu>
Closes: 43396
docs/grub.texi
grub-core/net/bootp.c