Skip to contentSkip to conversation

netfilter: use NFPROTO_IPV4 instead of AF_INET

PATCH Applied Changli Gao 2 participants 2 messages Aug 17, 2010 – Sep 16, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netfilter: use NFPROTO_IPV4 instead of AF_INET

The field family of xt_target should be NFPROTO_IPV4, though NFPROTO_IPV4 and AF_INET are the same.

---
 net/netfilter/xt_TPROXY.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/xt_TPROXY.c +1 -1
index c61294d..21bb2af 100644
@@ -76,7 +76,7 @@ static int tproxy_tg_check(const struct xt_tgchk_param *par)
 
 static struct xt_target tproxy_tg_reg __read_mostly = {
 	.name		= "TPROXY",
-	.family		= AF_INET,
+	.family		= NFPROTO_IPV4,
 	.table		= "mangle",
 	.target		= tproxy_tg,
 	.targetsize	= sizeof(struct xt_tproxy_target_info),
#1 lore raw
Quoted 2 lines · Changli Gao

The field family of xt_target should be NFPROTO_IPV4, though NFPROTO_IPV4 and AF_INET are the same.

Applied, thanks.