diff options
author | William A. Kennington III <wak@google.com> | 2021-11-05 11:31:59 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2021-12-07 01:28:57 +0300 |
commit | 3dbea9350f23bbf2a4b3909e1d6bab157edba7fc (patch) | |
tree | 6fe129329b360cbfc11843db852e2f68b0068018 /meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in | |
parent | 2f5e1695c9f967e8d11415502b1c08affd8955a4 (diff) | |
download | openbmc-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>
Diffstat (limited to 'meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in')
-rw-r--r-- | meta-google/recipes-google/ncsi/files/gbmc-ncsi-br-deprecated-ips.sh.in | 5 |
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 796e40584..7b0702570 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 |