mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
the direct route for server/gateway.
This commit is contained in:
1 parent
9d611a318d
commit
0e7ec82034
2 files changed
+7
-5
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
|
||||
the direct route for server/gateway.
|
||||
|
||||
2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
|
||||
|
||||
@@ -189,12 +189,9 @@ grub_net_configure_by_dhcp_ack (const char *name,
|
||||
gw.ipv4 = bp->gateway_ip;
|
||||
grub_snprintf (rname, sizeof (rname), "%s:gw", name);
|
||||
grub_net_add_route_gw (rname, target, gw);
|
||||
}
|
||||
if (bp->gateway_ip || bp->server_ip)
|
||||
{
|
||||
grub_net_network_level_netaddress_t target;
|
||||
|
||||
target.type = GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV4;
|
||||
target.ipv4.base = bp->gateway_ip ? bp->gateway_ip : bp->server_ip;
|
||||
target.ipv4.base = bp->gateway_ip;
|
||||
target.ipv4.masksize = 32;
|
||||
grub_net_add_route (name, target, inter);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user