Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Roopa Prabhu and committed by
David S. Miller
74a0f2fe 8602a625

+1
+1
net/ipv6/route.c
··· 1780 1780 goto out; 1781 1781 lwtunnel_state_get(lwtstate); 1782 1782 rt->rt6i_lwtstate = lwtstate; 1783 + rt->dst.output = lwtunnel_output6; 1783 1784 } 1784 1785 1785 1786 ipv6_addr_prefix(&rt->rt6i_dst.addr, &cfg->fc_dst, cfg->fc_dst_len);