From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: RFC Remove classful causing incorrect routing behavior
Date: Sun, 20 Apr 2014 16:15:03 +0200 [thread overview]
Message-ID: <5353D667.5040600@gmail.com> (raw)
In-Reply-To: <6D165E863E048E4D86C25F15CEA5329797665E90@ORSMSX109.amr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]
On 19.04.2014 02:48, Mroczek, Joseph T wrote:
> Hello:
>
> Currently, the DHCP logic assumes that if a gateway is received in the DHCP packet the boot server is on a remote network. Given that CIDR is now over 20 years old, I think it is a safe assumption that a netmask will be offered in DHCP options.
>
> Can this be removed? Or is there still a need to cover the classful case?
>
Please detail the failure scenario.
Current code follows standard behaviour for PXE clients and changing it
would break any installation which relies on it.
> Thank you for any attention you can pay this matter.
>
> ~joe
>
>
> diff -Naur grub-2.02~beta2/grub-core/net/bootp.c grub-2.02~beta2-jtm-clean/grub-core/net/bootp.c
> --- grub-2.02~beta2/grub-core/net/bootp.c 2013-12-24 11:40:31.000000000 -0500
> +++ grub-2.02~beta2-jtm-clean/grub-core/net/bootp.c 2014-04-18 20:38:05.858208600 -0400
> @@ -191,18 +227,6 @@
> if (bp->gateway_ip)
> {
> grub_net_network_level_netaddress_t target;
> - grub_net_network_level_address_t gw;
> - char *rname;
> -
> - target.type = GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV4;
> - target.ipv4.base = bp->server_ip;
> - target.ipv4.masksize = 32;
> - gw.type = GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV4;
> - gw.ipv4 = bp->gateway_ip;
> - rname = grub_xasprintf ("%s:gw", name);
> - if (rname)
> - grub_net_add_route_gw (rname, target, gw);
> - grub_free (rname);
>
> target.type = GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV4;
> target.ipv4.base = bp->gateway_ip;
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 274 bytes --]
next prev parent reply other threads:[~2014-04-20 14:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-19 0:48 RFC Remove classful causing incorrect routing behavior Mroczek, Joseph T
2014-04-20 14:15 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2014-04-21 15:56 ` Mroczek, Joseph T
2014-04-21 17:41 ` Andrey Borzenkov
2014-04-22 0:13 ` Mroczek, Joseph T
2014-04-22 2:36 ` Andrey Borzenkov
2014-04-29 0:07 ` Mroczek, Joseph T
2014-05-22 16:54 ` Mroczek, Joseph T
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5353D667.5040600@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.