Blame SOURCES/0170-Put-back-our-code-to-add-a-local-route.patch

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