netfilter: xt_CT: par->family is an nfproto
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
This commit is contained in:
committed by
Patrick McHardy
parent
e50208a080
commit
076f7839dd
@@ -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)
|
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;
|
const struct ipt_entry *e = par->entryinfo;
|
||||||
|
|
||||||
if (e->ip.invflags & IPT_INV_PROTO)
|
if (e->ip.invflags & IPT_INV_PROTO)
|
||||||
return 0;
|
return 0;
|
||||||
return e->ip.proto;
|
return e->ip.proto;
|
||||||
} else if (par->family == AF_INET6) {
|
} else if (par->family == NFPROTO_IPV6) {
|
||||||
const struct ip6t_entry *e = par->entryinfo;
|
const struct ip6t_entry *e = par->entryinfo;
|
||||||
|
|
||||||
if (e->ipv6.invflags & IP6T_INV_PROTO)
|
if (e->ipv6.invflags & IP6T_INV_PROTO)
|
||||||
|
Reference in New Issue
Block a user