commit | f540802e0db268df30bd63f1778f199d2dac98bc | [log] [tgz] |
---|---|---|
author | Yuxiao Zhang <yuxiaozhang@google.com> | Thu Jul 20 10:50:14 2023 -0700 |
committer | William A. Kennington III <wak@google.com> | Thu Jul 20 20:18:43 2023 +0000 |
tree | a7e654a184b117528221aa4eca22ced9ee23ae77 | |
parent | 69b345e3f27c046358b71cdf70a4f6d959cc2f69 [diff] |
meta-google: gbmc-bridge: support fd1x public address We have platforms using fd1x instead of fd00, this will make sure we pick the correct ip address. Change-Id: I9c385a43adb539cfbfdd80651c59b0c0eba05082 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh index dd153ab..693c728 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh +++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh
@@ -97,7 +97,7 @@ if (( ip_bytes[0] & 0xfe == 0xfc || ip_bytes[8] != 0xfd )); then return 0 fi - if (( ip_bytes[9] != 0 )); then + if (( ip_bytes[9] & 0x0f != 0 )); then local -n gbmc_br_gw_src_ip=gbmc_br_gw_src_ip_stateful else local -n gbmc_br_gw_src_ip=gbmc_br_gw_src_ip_stateless