From: Jan Engelhardt Date: Wed, 10 Mar 2010 23:38:44 +0000 (+0100) Subject: netfilter: xt_CT: par->family is an nfproto X-Git-Tag: Ubuntu-5.13.0-19.19~31745^2~168^2~82 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=076f7839dd30b379f3cd468b13cf513cdcd5cee7;p=mirror_ubuntu-jammy-kernel.git netfilter: xt_CT: par->family is an nfproto Signed-off-by: Jan Engelhardt --- 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, 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)