Compare commits

...

2 Commits

Author SHA1 Message Date
padavanonly
ee09cf9faf
Modify turboacc init script to toggle hook 2025-12-13 18:56:05 +08:00
padavanonly
82804519aa
hnat:fix pppoe->wifi offload 2025-12-13 18:39:42 +08:00
2 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,8 @@ start_service() {
local hnat_path="/sys/kernel/debug/hnat"
config_get_bool "fastpath_mh_eth_hnat" "config" "fastpath_mh_eth_hnat" "1"
echo 1 > "$hnat_path/hook_toggle"
echo 0 > "$hnat_path/hook_toggle"
echo "$fastpath_mh_eth_hnat" > "$hnat_path/hook_toggle"
if [ "$fastpath_mh_eth_hnat" -eq "1" ]; then

View File

@ -2707,7 +2707,7 @@ mtk_hnat_br_nf_local_out(void *priv, struct sk_buff *skb,
post_routing_print(skb, state->in, state->out, __func__);
if ((!strncmp(state->out->name, "ra0",3) || !strncmp(state->out->name, "rax0",4)) && !is_from_extge(skb) && !( FROM_GE_PPD(skb) || FROM_GE_LAN(skb) ||
FROM_GE_WAN(skb) || FROM_WED(skb) || FROM_EXT(skb))){
FROM_GE_WAN(skb) || FROM_WED(skb) || FROM_EXT(skb) || FROM_GE_VIRTUAL(skb))){
if (!do_hnat_cpu_to_ge(skb))
return NF_STOLEN;
}