diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-09-16 13:37:30 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-09-16 13:37:30 -0400 |
commit | 70a851667dbd7aa3f7be9609d6580ca9861230b3 (patch) | |
tree | 6ed5fb80eb1f5c9196aad84a3d72fd8ebbf64326 | |
parent | 0abee5260babe0a12d468b485a28336551697925 (diff) |
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>
-rw-r--r-- | net/netfilter/xt_TPROXY.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_TPROXY.c b/net/netfilter/xt_TPROXY.c index c61294d85fda..21bb2aff6b8f 100644 --- a/net/netfilter/xt_TPROXY.c +++ b/net/netfilter/xt_TPROXY.c | |||
@@ -76,7 +76,7 @@ static int tproxy_tg_check(const struct xt_tgchk_param *par) | |||
76 | 76 | ||
77 | static struct xt_target tproxy_tg_reg __read_mostly = { | 77 | static struct xt_target tproxy_tg_reg __read_mostly = { |
78 | .name = "TPROXY", | 78 | .name = "TPROXY", |
79 | .family = AF_INET, | 79 | .family = NFPROTO_IPV4, |
80 | .table = "mangle", | 80 | .table = "mangle", |
81 | .target = tproxy_tg, | 81 | .target = tproxy_tg, |
82 | .targetsize = sizeof(struct xt_tproxy_target_info), | 82 | .targetsize = sizeof(struct xt_tproxy_target_info), |