summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2021-11-05 11:31:59 +0300
committerWilliam A. Kennington III <wak@google.com>2021-12-07 01:28:57 +0300
commit3dbea9350f23bbf2a4b3909e1d6bab157edba7fc (patch)
tree6fe129329b360cbfc11843db852e2f68b0068018
parent2f5e1695c9f967e8d11415502b1c08affd8955a4 (diff)
downloadopenbmc-3dbea9350f23bbf2a4b3909e1d6bab157edba7fc.tar.xz
meta-google: gbmc-bridge: Add stateless deprecated addresses
We were missing this address but we want neighbor discovery from outside the BMC to work against this range. Change-Id: I6ef139486f382df21596c460626bfe2f692c7236 Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r--meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in
index 796e40584f..7b07025700 100644
--- a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in
+++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in
@@ -34,6 +34,8 @@ gbmc_ncsi_br_deprecated_ips_update() {
ip_to_bytes pfx_bytes "$gbmc_ncsi_br_deprecated_ips_lastip"
local pfx="$(ip_bytes_to_str pfx_bytes)"
+ (( pfx_bytes[9] &= 0xf0 ))
+ local stateless_pfx="$(ip_bytes_to_str pfx_bytes)"
pfx_bytes[8]=0
pfx_bytes[9]=0
local host_pfx="$(ip_bytes_to_str pfx_bytes)"
@@ -42,6 +44,9 @@ gbmc_ncsi_br_deprecated_ips_update() {
Address=$pfx/128
PreferredLifetime=0
[Address]
+Address=$stateless_pfx/128
+PreferredLifetime=0
+[Address]
Address=$host_pfx/128
PreferredLifetime=0
EOF