netfilter.mk: add version conditional around nf_nat_redirect mod
authorYousong Zhou <yszhou4tech@gmail.com>
Fri, 9 Oct 2020 08:34:16 +0000 (16:34 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Sat, 24 Oct 2020 14:28:37 +0000 (22:28 +0800)
commitdd5b04bf986962d449d0c7943c712f50aa60bfcc
treecd64fed431ea75377933ca7dd7106dce92ddb460
parent2407118db9adfd4e42be2fa8f1165d30abee007a
netfilter.mk: add version conditional around nf_nat_redirect mod

Kernel commit 1ac89d20150e ("netfilter: nat: merge nf_nat_redirect into
nf_nat") made the redirect module part of the nat core and changed the
CONFIG_NF_NAT_REDIRECT option to a boolean, without prompt, affecting
kernel 4.18 onwards.  CONFIG_NF_NAT_REDIRECT now can only be selected by
CONFIG_NFT_REDIR or NETFILTER_XT_TARGET_REDIRECT

Fixes: FS#2476
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2476

Fixes: FS#2990 (partial)
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2990

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
[note that the option has no prompt and can only be selected by other
kconfig options]
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
include/netfilter.mk