nalika / rpms / grub2

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