nalika / rpms / grub2

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