aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/kernel_wfp
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-06-18 09:55:39 +0200
committerTobias Brunner <tobias@strongswan.org>2014-06-19 14:33:40 +0200
commitc005073d0ba715153e3bea4c41589d1643ae9b64 (patch)
treea3485ced3ebbcf84191dc25459f1493650c1f517 /src/libcharon/plugins/kernel_wfp
parent73b22aa842ae0f32d3aaeb79101894cc719ceaf2 (diff)
downloadstrongswan-c005073d0ba715153e3bea4c41589d1643ae9b64.tar.bz2
strongswan-c005073d0ba715153e3bea4c41589d1643ae9b64.tar.xz
kernel-interface: Add destination prefix to get_nexthop()
This allows to determine the next hop to reach a subnet, for instance, when installing routes for shunt policies.
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 cc1cae6d4..c788bfb10 100644
--- a/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
+++ b/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
@@ -1348,7 +1348,7 @@ static bool manage_route(private_kernel_wfp_ipsec_t *this,
return FALSE;
}
gtw = hydra->kernel_interface->get_nexthop(hydra->kernel_interface,
- remote, local);
+ remote, -1, local);
if (add)
{
done = install_route(this, dst, mask, src, gtw);