···728728729729/* If the calling party is on the same side of the forward-to party,730730 * we don't need to track the second call */731731-static int callforward_do_filter(const union nf_inet_addr *src,731731+static int callforward_do_filter(struct net *net,732732+ const union nf_inet_addr *src,732733 const union nf_inet_addr *dst,733734 u_int8_t family)734735{···751750752751 memset(&fl2, 0, sizeof(fl2));753752 fl2.daddr = dst->ip;754754- if (!afinfo->route(&init_net, (struct dst_entry **)&rt1,753753+ if (!afinfo->route(net, (struct dst_entry **)&rt1,755754 flowi4_to_flowi(&fl1), false)) {756756- if (!afinfo->route(&init_net, (struct dst_entry **)&rt2,755755+ if (!afinfo->route(net, (struct dst_entry **)&rt2,757756 flowi4_to_flowi(&fl2), false)) {758757 if (rt_nexthop(rt1, fl1.daddr) ==759758 rt_nexthop(rt2, fl2.daddr) &&···775774776775 memset(&fl2, 0, sizeof(fl2));777776 fl2.daddr = dst->in6;778778- if (!afinfo->route(&init_net, (struct dst_entry **)&rt1,777777+ if (!afinfo->route(net, (struct dst_entry **)&rt1,779778 flowi6_to_flowi(&fl1), false)) {780780- if (!afinfo->route(&init_net, (struct dst_entry **)&rt2,779779+ if (!afinfo->route(net, (struct dst_entry **)&rt2,781780 flowi6_to_flowi(&fl2), false)) {782781 if (ipv6_addr_equal(rt6_nexthop(rt1),783782 rt6_nexthop(rt2)) &&···808807 __be16 port;809808 union nf_inet_addr addr;810809 struct nf_conntrack_expect *exp;810810+ struct net *net = nf_ct_net(ct);811811 typeof(nat_callforwarding_hook) nat_callforwarding;812812813813 /* Read alternativeAddress */···818816 /* If the calling party is on the same side of the forward-to party,819817 * we don't need to track the second call */820818 if (callforward_filter &&821821- callforward_do_filter(&addr, &ct->tuplehash[!dir].tuple.src.u3,819819+ callforward_do_filter(net, &addr, &ct->tuplehash[!dir].tuple.src.u3,822820 nf_ct_l3num(ct))) {823821 pr_debug("nf_ct_q931: Call Forwarding not tracked\n");824822 return 0;