[Devel] [PATCH rh7] net: Revert "ipv6: Add exports for ip6_vzredir module"

Konstantin Khorenko khorenko at virtuozzo.com
Mon Dec 18 18:28:48 MSK 2017


This export was needed to ip transparent traffic redirection to, e.g.,
service VE.

No service VE in Virtuozzo 7 => drop this export.
No functional changes.

https://jira.sw.ru/browse/PCLIN-28716

Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 include/net/ip6_route.h |  1 -
 net/ipv6/route.c        | 10 ++--------
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h
index 6c246ec..aff97ee 100644
--- a/include/net/ip6_route.h
+++ b/include/net/ip6_route.h
@@ -64,7 +64,6 @@ static inline bool rt6_need_strict(const struct in6_addr *daddr)
 
 
 void ip6_route_input(struct sk_buff *skb);
-void __ip6_route_input(struct sk_buff *skb, struct in6_addr *daddr);
 
 struct dst_entry *ip6_route_output(struct net *net, const struct sock *sk,
 				   struct flowi6 *fl6);
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index d0c303e..24cc989 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1184,7 +1184,7 @@ static struct dst_entry *ip6_route_input_lookup(struct net *net,
 	return fib6_rule_lookup(net, fl6, flags, ip6_pol_route_input);
 }
 
-void __ip6_route_input(struct sk_buff *skb, struct in6_addr *daddr)
+void ip6_route_input(struct sk_buff *skb)
 {
 	const struct ipv6hdr *iph = ipv6_hdr(skb);
 	struct net *net = dev_net(skb->dev);
@@ -1192,7 +1192,7 @@ void __ip6_route_input(struct sk_buff *skb, struct in6_addr *daddr)
 	struct ip_tunnel_info *tun_info;
 	struct flowi6 fl6 = {
 		.flowi6_iif = skb->dev->ifindex,
-		.daddr = *daddr,
+		.daddr = iph->daddr,
 		.saddr = iph->saddr,
 		.flowlabel = ip6_flowinfo(iph),
 		.flowi6_mark = skb->mark,
@@ -1205,12 +1205,6 @@ void __ip6_route_input(struct sk_buff *skb, struct in6_addr *daddr)
 	skb_dst_drop(skb);
 	skb_dst_set(skb, ip6_route_input_lookup(net, skb->dev, &fl6, flags));
 }
-EXPORT_SYMBOL(__ip6_route_input);
-
-void ip6_route_input(struct sk_buff *skb)
-{
-	__ip6_route_input(skb, &ipv6_hdr(skb)->daddr);
-}
 
 static struct rt6_info *ip6_pol_route_output(struct net *net, struct fib6_table *table,
 					     struct flowi6 *fl6, int flags)
-- 
2.1.4



More information about the Devel mailing list