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