aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-08-03 22:26:14 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-03 22:26:14 -0700
commitc961b1ccd0f258bdee808c61c2c2a0907a1fffda (patch)
treeb4d102911e7e8af04d0f94df4dc734a331260fb7 /net/ipv4/route.c
parent58da018053531b9cb91423a64f2a762ef0fe7456 (diff)
parent0335f5b500adcc28bc3fd5d8a1e4482c348cff4a (diff)
downloadkernel_replicant_linux-c961b1ccd0f258bdee808c61c2c2a0907a1fffda.tar.gz
kernel_replicant_linux-c961b1ccd0f258bdee808c61c2c2a0907a1fffda.tar.bz2
kernel_replicant_linux-c961b1ccd0f258bdee808c61c2c2a0907a1fffda.zip
Merge branch 'lwtunnel-encap-local'
Robert Shearman says: ==================== lwtunnel: encap locally-generated ipv4 packets Locally-generated IPv4 packets, such as from applications running on the host or traceroute/ping currently don't have lwtunnel output redirected encap applied. However, they should do in the same way as for forwarded packets and this patch series addresses that. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 908f7ef2f12a..18fd7c9095c7 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -2022,6 +2022,8 @@ add:
}
rt_set_nexthop(rth, fl4->daddr, res, fnhe, fi, type, 0);
+ if (lwtunnel_output_redirect(rth->rt_lwtstate))
+ rth->dst.output = lwtunnel_output;
return rth;
}