aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_CT.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-03-11 00:38:44 +0100
committerPatrick McHardy <kaber@trash.net>2010-03-17 15:48:35 +0100
commit076f7839dd30b379f3cd468b13cf513cdcd5cee7 (patch)
tree5a40afcc0d50c9eb8f0489340e65f6495168b8a2 /net/netfilter/xt_CT.c
parente50208a080a8abdfa6c85865362a1cf329e9fe31 (diff)
downloadlinux-076f7839dd30b379f3cd468b13cf513cdcd5cee7.tar.gz
netfilter: xt_CT: par->family is an nfproto
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/netfilter/xt_CT.c')
-rw-r--r--net/netfilter/xt_CT.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c
index 61c50fa8470374..fda603edb31ae7 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,
static u8 xt_ct_find_proto(const struct xt_tgchk_param *par)
{
- if (par->family == AF_INET) {
+ if (par->family == NFPROTO_IPV4) {
const struct ipt_entry *e = par->entryinfo;
if (e->ip.invflags & IPT_INV_PROTO)
return 0;
return e->ip.proto;
- } else if (par->family == AF_INET6) {
+ } else if (par->family == NFPROTO_IPV6) {
const struct ip6t_entry *e = par->entryinfo;
if (e->ipv6.invflags & IP6T_INV_PROTO)