Skip to content

Commit

Permalink
netfilter: use NFPROTO_IPV4 instead of AF_INET
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Changli Gao authored and Patrick McHardy committed Sep 16, 2010
1 parent 0abee52 commit 70a8516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/xt_TPROXY.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 70a8516

Please sign in to comment.