diff options
| author | Ingo Molnar <mingo@kernel.org> | 2024-03-25 13:32:29 +0300 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2024-03-25 13:32:29 +0300 | 
| commit | f4566a1e73957800df75a3dd2dccee8a4697f327 (patch) | |
| tree | b043b875228c0b25988af66c680d60cae69d761d /net/netfilter/utils.c | |
| parent | b9e6e28663928cab836a19abbdec3d036a07db3b (diff) | |
| parent | 4cece764965020c22cff7665b18a012006359095 (diff) | |
| download | linux-f4566a1e73957800df75a3dd2dccee8a4697f327.tar.xz | |
Merge tag 'v6.9-rc1' into sched/core, to pick up fixes and to refresh the branch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/netfilter/utils.c')
| -rw-r--r-- | net/netfilter/utils.c | 37 | 
1 files changed, 0 insertions, 37 deletions
diff --git a/net/netfilter/utils.c b/net/netfilter/utils.c index acef4155f0da..008419db815a 100644 --- a/net/netfilter/utils.c +++ b/net/netfilter/utils.c @@ -179,43 +179,6 @@ int nf_route(struct net *net, struct dst_entry **dst, struct flowi *fl,  }  EXPORT_SYMBOL_GPL(nf_route); -static int nf_ip_reroute(struct sk_buff *skb, const struct nf_queue_entry *entry) -{ -#ifdef CONFIG_INET -	const struct ip_rt_info *rt_info = nf_queue_entry_reroute(entry); - -	if (entry->state.hook == NF_INET_LOCAL_OUT) { -		const struct iphdr *iph = ip_hdr(skb); - -		if (!(iph->tos == rt_info->tos && -		      skb->mark == rt_info->mark && -		      iph->daddr == rt_info->daddr && -		      iph->saddr == rt_info->saddr)) -			return ip_route_me_harder(entry->state.net, entry->state.sk, -						  skb, RTN_UNSPEC); -	} -#endif -	return 0; -} - -int nf_reroute(struct sk_buff *skb, struct nf_queue_entry *entry) -{ -	const struct nf_ipv6_ops *v6ops; -	int ret = 0; - -	switch (entry->state.pf) { -	case AF_INET: -		ret = nf_ip_reroute(skb, entry); -		break; -	case AF_INET6: -		v6ops = rcu_dereference(nf_ipv6_ops); -		if (v6ops) -			ret = v6ops->reroute(skb, entry); -		break; -	} -	return ret; -} -  /* Only get and check the lengths, not do any hop-by-hop stuff. */  int nf_ip6_check_hbh_len(struct sk_buff *skb, u32 *plen)  {  | 
