commit | 4971872e276b170470abae5c9591c5f569e72161 | [log] [tgz] |
---|---|---|
author | Yuxiao Zhang <yuxiaozhang@google.com> | Tue Aug 27 14:07:18 2024 -0700 |
committer | Yuxiao Zhang <yuxiaozhang@google.com> | Wed Sep 04 11:20:33 2024 -0700 |
tree | b34afec50a5d009302ebe700c0d2c89d703cc126 | |
parent | dce2e7cd07c75377b3ae5a1da0050bc68142de50 [diff] |
meta-google: nftables: adjust address Some of our platforms uses fd1x addr, this corrects the rules. Change-Id: I25eab10c40409bc6d9e3758ffffba4b2d0c3a957 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-nft.sh b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-nft.sh index 7aa2158..79ea76f 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-nft.sh +++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-nft.sh
@@ -57,8 +57,11 @@ if (( ip_bytes[8] != 0xfd )); then return 0 fi + + (( ip_bytes[9] &= 0xf0 )) + local i - for (( i=9; i<16; i++ )); do + for (( i=10; i<16; i++ )); do ip_bytes["$i"]=0 done pfx="$(ip_bytes_to_str ip_bytes)/76"