Przeglądaj źródła

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.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Changli Gao 14 lat temu
rodzic
commit
70a851667d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      net/netfilter/xt_TPROXY.c

+ 1 - 1
net/netfilter/xt_TPROXY.c

@@ -76,7 +76,7 @@ static int tproxy_tg_check(const struct xt_tgchk_param *par)
 
 
 static struct xt_target tproxy_tg_reg __read_mostly = {
 static struct xt_target tproxy_tg_reg __read_mostly = {
 	.name		= "TPROXY",
 	.name		= "TPROXY",
-	.family		= AF_INET,
+	.family		= NFPROTO_IPV4,
 	.table		= "mangle",
 	.table		= "mangle",
 	.target		= tproxy_tg,
 	.target		= tproxy_tg,
 	.targetsize	= sizeof(struct xt_tproxy_target_info),
 	.targetsize	= sizeof(struct xt_tproxy_target_info),