aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/kernel_wfp
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-03-11 18:54:31 +0100
committerTobias Brunner <tobias@strongswan.org>2016-06-10 13:54:18 +0200
commit99a57aa5ee15affa9e38595d90971031977e34be (patch)
tree701a88959db7936158a1187270ddc9de32ddd8c4 /src/libcharon/plugins/kernel_wfp
parent436f64d5bcc3946387dd95265d83d8764fe37797 (diff)
downloadstrongswan-99a57aa5ee15affa9e38595d90971031977e34be.tar.bz2
strongswan-99a57aa5ee15affa9e38595d90971031977e34be.tar.xz
kernel-net: Let get_nexthop() return an optional interface name
The returned name should be the interface over which the destination address/net is reachable.
Diffstat (limited to 'src/libcharon/plugins/kernel_wfp')
-rw-r--r--src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c b/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
index c12d38430..6ad26b72f 100644
--- a/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
+++ b/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
@@ -1489,7 +1489,7 @@ static bool manage_route(private_kernel_wfp_ipsec_t *this,
dst->destroy(dst);
return FALSE;
}
- gtw = charon->kernel->get_nexthop(charon->kernel, remote, -1, local);
+ gtw = charon->kernel->get_nexthop(charon->kernel, remote, -1, local, NULL);
if (add)
{
done = install_route(this, dst, mask, src, gtw);