mirror of https://gitee.com/openkylin/linux.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 <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8602a62502
commit
74a0f2fe8e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue