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