Blame SOURCES/0254-Put-back-our-code-to-add-a-local-route.patch
|
|
d41074 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
d41074 |
From: Peter Jones <pjones@redhat.com>
|
|
|
d41074 |
Date: Thu, 21 Jun 2018 18:32:26 -0400
|
|
|
d41074 |
Subject: [PATCH] Put back our code to add a local route.
|
|
|
d41074 |
|
|
|
d41074 |
This was removed by the previous patch.
|
|
|
d41074 |
|
|
|
d41074 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
d41074 |
---
|
|
|
d41074 |
grub-core/net/bootp.c | 5 +++++
|
|
|
d41074 |
1 file changed, 5 insertions(+)
|
|
|
d41074 |
|
|
|
d41074 |
diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c
|
|
|
d41074 |
index 26b3d83d0bc..dd4660601e2 100644
|
|
|
d41074 |
--- a/grub-core/net/bootp.c
|
|
|
d41074 |
+++ b/grub-core/net/bootp.c
|
|
|
d41074 |
@@ -972,6 +972,7 @@ grub_net_configure_by_dhcpv6_reply (const char *name,
|
|
|
d41074 |
{
|
|
|
d41074 |
struct grub_net_network_level_interface *inf;
|
|
|
d41074 |
grub_dhcp6_options_t dhcp6;
|
|
|
d41074 |
+ int mask = -1;
|
|
|
d41074 |
|
|
|
d41074 |
dhcp6 = grub_dhcp6_options_get (v6h, size);
|
|
|
d41074 |
if (!dhcp6)
|
|
|
d41074 |
@@ -1003,6 +1004,10 @@ grub_net_configure_by_dhcpv6_reply (const char *name,
|
|
|
d41074 |
}
|
|
|
d41074 |
|
|
|
d41074 |
grub_dhcp6_options_free (dhcp6);
|
|
|
d41074 |
+
|
|
|
d41074 |
+ if (inf)
|
|
|
d41074 |
+ grub_net_add_ipv6_local (inf, mask);
|
|
|
d41074 |
+
|
|
|
d41074 |
return inf;
|
|
|
d41074 |
}
|
|
|
d41074 |
|