commit | e8b7dfa31906ce7c8cd56c07084d2800bb60cd27 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Thu Apr 20 10:16:44 2023 +0800 |
committer | developer <developer@mediatek.com> | Fri Apr 28 12:36:21 2023 +0800 |
tree | cc50d74c9db06766cfba33704d15689d3653891b | |
parent | 36e6ca220ab57c6befe523af05de3c9f4e0ba687 [diff] [blame] |
[][Kernel][hnat][464xlat support on netfilter hnat] [Description] Add new feature support 464xlat on netfilter hnat In the test environment, the skb through the user space, resulting in loss of headroom info. So the process changes a lot. In order to reduce the risk, I implemented separately and insert it into pre-routing and post-routing. We can use xlat_toggle to control it. [Release-log] N/A Change-Id: Ib00e0c6f3674ee287cb5b318d30a73da279596b9 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7395696
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat.c index 9c40ac8..7cda69f 100644 --- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat.c +++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat.c
@@ -862,6 +862,8 @@ if (err) pr_info("hnat roaming work fail\n"); + INIT_LIST_HEAD(&hnat_priv->xlat.map_list); + return 0; err_out: