summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2021-05-12 11:25:03 +0300
committerWilliam A. Kennington III <wak@google.com>2021-05-12 20:38:50 +0300
commit0f31b96b2e13ffd845d012091e5edae80a7fe9d9 (patch)
treedacba2cb04cd95cde0e55e47f82356b7520d6472 /meta-google
parente952771b36848259fbdfa8e52e6695e87bcc9279 (diff)
downloadopenbmc-0f31b96b2e13ffd845d012091e5edae80a7fe9d9.tar.xz
meta-google: gbmc-bridge: Fix gw source check
The conversion to ip_to_bytes picked the wrong address bytes off by one. This fixes it and verifies that a machine now updates the address. Change-Id: Ifc7bbebc0cf500d51d01d693445aa2533122e9a1 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google')
-rw-r--r--meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-gw-src.sh2
1 files changed, 1 insertions, 1 deletions
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 f765b0d10..cfe993f28 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
@@ -56,7 +56,7 @@ gbmc_br_gw_src_hook() {
echo "gBMC Bridge Ensure RA Invalid IP: $ip" >&2
return 1
fi
- if (( ip_bytes[9] != 0xfd || ip_bytes[10] != 0 )); then
+ if (( ip_bytes[8] != 0xfd || ip_bytes[9] != 0 )); then
return 0
fi
if [ "$action" = 'add' -a "$ip" != "$gbmc_br_gw_src_ip" ]; then