integ/base/dhcp/debian/patches/dhclient-set-the-default-prefix-length-to-64.patch
Andre Fernando Zanella Kantek 93c481b975 Debian: dhclient set the IPv6 prefix length for the addresses
During AIO-DX IPv6 node installation, the management address for
controller-1 set by dhclient receives a "/128" prefix length. The
cause comes from DHCPv6, which does not inform a prefix length on its
negotiation. The prefix should be learned via RA messages.

Since the internode IPv6 communications in StarlingX do not contain
a router and RA is in principle disabled on the management network,
we must set the system with the default prefix length of 64. A similar
patch was done for Centos.

Test Plan
[PASS] Install AIO-DX on IPv6 network, it is correctly setting the
       controller-1 mgmt ip address after the first boot.

Story: 2009968
Task: 46184


Signed-off-by: Andre Fernando Zanella Kantek <AndreFernandoZanella.Kantek@windriver.com>
Change-Id: I2fce4e7fce7f4e1fd6902d24330d7621b238031a
2022-09-02 16:22:06 -03:00

34 lines
1.1 KiB
Diff

From 45595a9851a6e09d17a6fc9006b7ddb3b8539756 Mon Sep 17 00:00:00 2001
From: Andre Fernando Zanella Kantek
<AndreFernandoZanella.Kantek@windriver.com>
Date: Thu, 1 Sep 2022 10:26:19 -0300
Subject: [PATCH] Set the default prefix length to 64
Since the StarlingX internode communication happens without a L3 router,
the hosts will not be able to see each other with prefix length of 128.
This commit sets the default value to 64
Signed-off-by: Andre Fernando Zanella Kantek <AndreFernandoZanella.Kantek@windriver.com>
---
includes/site.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/includes/site.h b/includes/site.h
index 2ef69e4..ca2ec6a 100644
--- a/includes/site.h
+++ b/includes/site.h
@@ -285,7 +285,7 @@
is a host address and doesn't include any on-link information.
64 indicates that the first 64 bits are the subnet or on-link
prefix. */
-#define DHCLIENT_DEFAULT_PREFIX_LEN 128
+#define DHCLIENT_DEFAULT_PREFIX_LEN 64
/* Enable the gentle shutdown signal handling. Currently this
means that on SIGINT or SIGTERM a client will release its
--
2.17.1