diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-03-10 18:38:44 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-03-17 10:48:35 -0400 |
commit | 076f7839dd30b379f3cd468b13cf513cdcd5cee7 (patch) | |
tree | 5a40afcc0d50c9eb8f0489340e65f6495168b8a2 | |
parent | e50208a080a8abdfa6c85865362a1cf329e9fe31 (diff) |
netfilter: xt_CT: par->family is an nfproto
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | net/netfilter/xt_CT.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c index 61c50fa84703..fda603edb31a 100644 --- a/net/netfilter/xt_CT.c +++ b/net/netfilter/xt_CT.c | |||
@@ -37,13 +37,13 @@ static unsigned int xt_ct_target(struct sk_buff *skb, | |||
37 | 37 | ||
38 | static u8 xt_ct_find_proto(const struct xt_tgchk_param *par) | 38 | static u8 xt_ct_find_proto(const struct xt_tgchk_param *par) |
39 | { | 39 | { |
40 | if (par->family == AF_INET) { | 40 | if (par->family == NFPROTO_IPV4) { |
41 | const struct ipt_entry *e = par->entryinfo; | 41 | const struct ipt_entry *e = par->entryinfo; |
42 | 42 | ||
43 | if (e->ip.invflags & IPT_INV_PROTO) | 43 | if (e->ip.invflags & IPT_INV_PROTO) |
44 | return 0; | 44 | return 0; |
45 | return e->ip.proto; | 45 | return e->ip.proto; |
46 | } else if (par->family == AF_INET6) { | 46 | } else if (par->family == NFPROTO_IPV6) { |
47 | const struct ip6t_entry *e = par->entryinfo; | 47 | const struct ip6t_entry *e = par->entryinfo; |
48 | 48 | ||
49 | if (e->ipv6.invflags & IP6T_INV_PROTO) | 49 | if (e->ipv6.invflags & IP6T_INV_PROTO) |