From: Roopa Prabhu Date: Tue, 21 Jul 2015 08:43:51 +0000 (+0200) Subject: ipv6: rt6_info output redirect to tunnel output X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=74a0f2fe8ed51e3adbb1c882be04672fe7bb6996;p=linux-beck.git ipv6: rt6_info output redirect to tunnel output This is similar to ipv4 redirect of dst output to lwtunnel output function for encapsulation and xmit. Signed-off-by: Roopa Prabhu Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index b3431b79dfb1..7f2214f8fde7 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1780,6 +1780,7 @@ int ip6_route_add(struct fib6_config *cfg) goto out; lwtunnel_state_get(lwtstate); rt->rt6i_lwtstate = lwtstate; + rt->dst.output = lwtunnel_output6; } ipv6_addr_prefix(&rt->rt6i_dst.addr, &cfg->fc_dst, cfg->fc_dst_len);