OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0abee52
)
netfilter: use NFPROTO_IPV4 instead of AF_INET
author
Changli Gao
<xiaosuo@gmail.com>
Thu, 16 Sep 2010 17:37:30 +0000
(19:37 +0200)
committer
Patrick McHardy
<kaber@trash.net>
Thu, 16 Sep 2010 17:37:30 +0000
(19:37 +0200)
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>
net/netfilter/xt_TPROXY.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_TPROXY.c
b/net/netfilter/xt_TPROXY.c
index
c61294d
..
21bb2af
100644
(file)
--- 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)
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),