Skip to content
Commit 2314e879 authored by Henry Yen's avatar Henry Yen Committed by Pablo Neira Ayuso
Browse files

netfilter: nft_flow_offload: fix checking method of conntrack helper



This patch uses nfct_help() to detect whether an established connection
needs conntrack helper instead of using test_bit(IPS_HELPER_BIT,
&ct->status).

The reason is that IPS_HELPER_BIT is only set when using explicit CT
target.

However, in the case that a device enables conntrack helper via command
"echo 1 > /proc/sys/net/netfilter/nf_conntrack_helper", the status of
IPS_HELPER_BIT will not present any change, and consequently it loses
the checking ability in the context.

Signed-off-by: default avatarHenry Yen <henry.yen@mediatek.com>
Reviewed-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Tested-by: default avatarJohn Crispin <john@phrozen.org>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 10f4e765
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment