commit | 4001797fac85cd4d4258dd3b538ce54ed97bb618 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Tue Jun 29 14:27:35 2021 +0800 |
committer | developer <developer@mediatek.com> | Wed Jun 30 10:24:31 2021 +0800 |
tree | a83fb635452e0a9e400010b1c9c298b1934eb5a0 | |
parent | 0fffed6e323ef7d8e280049666739e3986e1147f [diff] |
[][Update set_iif judgement for NF_HNAT] [Description] Add set_iif judgement for NF_HNAT driver. Making it more precise can prevent Linux skb reuse problem. [Release-log] N/A Change-Id: I189bcdefaadafdfa556853f7352ee9d4971d7f3b Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4691350
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c index 15404cd..c3cf539 100644 --- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c +++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
@@ -555,7 +555,7 @@ static inline void hnat_set_iif(const struct nf_hook_state *state, struct sk_buff *skb, int val) { - if (FROM_WED(skb)) { + if (IS_WHNAT(state->in) && FROM_WED(skb)) { return; } else if (IS_LAN(state->in)) { skb_hnat_iface(skb) = FOE_MAGIC_GE_LAN;