Skip to content

Commit d8ef0ce

Browse files
Fix fw4 offload
Revert golang to 1.20.7 Signed-off-by: Nicholas Sun <nicholas-sun@outlook.com>
1 parent 9b313f7 commit d8ef0ce

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc
2+
index 06ef932..0a40e02 100644
3+
--- a/root/usr/share/ucode/fw4.uc
4+
+++ b/root/usr/share/ucode/fw4.uc
5+
@@ -2049,8 +2049,8 @@ return {
6+
});
7+
}
8+
9+
- if (net.physdev && !e.invert)
10+
- push(related_physdevs, net.physdev);
11+
+ if (net.up && net.device && !e.invert)
12+
+ push(related_physdevs, net.device);
13+
14+
push(related_subnets, ...(net.ipaddrs || []));
15+
}

SCRIPTS/02_prepare_package.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ cp -rf ../lede/target/linux/generic/hack-5.15/952-add-net-conntrack-events-suppo
2929
rm -rf ./package/network/config/firewall4
3030
cp -rf ../immortalwrt/package/network/config/firewall4 ./package/network/config/firewall4
3131
cp -f ../PATCH/firewall/990-unconditionally-allow-ct-status-dnat.patch ./package/network/config/firewall4/patches/990-unconditionally-allow-ct-status-dnat.patch
32+
cp -f ../PATCH/firewall/001-fix-fw4-flow-offload.patch ./package/network/config/firewall4/patches/001-fix-fw4-flow-offload.patch
3233
rm -rf ./package/libs/libnftnl
3334
cp -rf ../immortalwrt/package/libs/libnftnl ./package/libs/libnftnl
3435
rm -rf ./package/network/utils/nftables
@@ -102,8 +103,8 @@ sed -i '11i\PKG_SOURCE_URL:=https://github.com/daeuniverse/dae.git' feeds/packag
102103
sed -i "12i\PKG_SOURCE_VERSION:=$(curl -s https://api.github.com/repos/daeuniverse/dae/commits | grep '"sha"' | head -1 | cut -d '"' -f 4)" feeds/packages/net/dae/Makefile
103104
sed -i '13i\PKG_MIRROR_HASH:=skip' feeds/packages/net/dae/Makefile
104105
# Golang
105-
rm -rf ./feeds/packages/lang/golang
106-
cp -rf ../openwrt_pkg_ma/lang/golang ./feeds/packages/lang/golang
106+
#rm -rf ./feeds/packages/lang/golang
107+
#cp -rf ../openwrt_pkg_ma/lang/golang ./feeds/packages/lang/golang
107108
# NIC drivers update
108109
git clone https://github.com/sbwml/package_kernel_r8125 package/new/r8125
109110
cp -rf ../immortalwrt/package/kernel/r8152 ./package/new/r8152

0 commit comments

Comments
 (0)