projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8602a62
)
ipv6: rt6_info output redirect to tunnel output
author
Roopa Prabhu
<roopa@cumulusnetworks.com>
Tue, 21 Jul 2015 08:43:51 +0000
(10:43 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Jul 2015 17:39:04 +0000
(10:39 -0700)
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>
net/ipv6/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index b3431b79dfb1a182628894943f650edfecdf31e0..7f2214f8fde7176ab655f0a5e337b03103e3c8ce 100644
(file)
--- 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);