netfilter: xtables: fix a bad copypaste in xt_nflog module
Subsystems (4)
PATCH 1/1 netfilter: xtables: fix a bad copypaste in xt_nflog module
For the nflog_tg_reg struct under the CONFIG_IP6_NF_IPTABLES switch family should probably be NFPROTO_IPV6
Fixes 0bfcb7b71e73 ("netfilter: xtables: avoid NFPROTO_UNSPEC where needed")
Signed-off-by Ignat Korchagin <[email protected]>
--- net/netfilter/xt_NFLOG.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/xt_NFLOG.c +1 -1
@@ -79,7 +79,7 @@ static struct xt_target nflog_tg_reg[] __read_mostly = { { .name = "NFLOG", .revision = 0, - .family = NFPROTO_IPV4, + .family = NFPROTO_IPV6, .checkentry = nflog_tg_check, .destroy = nflog_tg_destroy, .target = nflog_tg,
Signature · 1 line
2.39.5
Pablo Neira Ayuso
maintainerQuoted 2 lines · Ignat Korchagin
For the
nflog_tg_regstruct under theCONFIG_IP6_NF_IPTABLESswitch family should probably beNFPROTO_IPV6
Patch is not complete.
I will post a version including mark and TRACE too
Quoted 23 lines
Fixes 0bfcb7b71e73 ("netfilter: xtables: avoid NFPROTO_UNSPEC where needed")Signed-off-by Ignat Korchagin <[email protected]>--- net/netfilter/xt_NFLOG.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/netfilter/xt_NFLOG.c +1
-1@@ -79,7 +79,7 @@ static struct xt_target nflog_tg_reg[] __read_mostly = { { .name = "NFLOG", .revision = 0, - .family = NFPROTO_IPV4, + .family = NFPROTO_IPV6, .checkentry = nflog_tg_check, .destroy = nflog_tg_destroy, .target = nflog_tg,Signature · 1 line
2.39.5