Skip to content

Commit

Permalink
netfilter: xt_CT: par->family is an nfproto
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
  • Loading branch information
Jan Engelhardt authored and Patrick McHardy committed Mar 17, 2010
1 parent e50208a commit 076f783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/netfilter/xt_CT.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 076f783

Please sign in to comment.