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