diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-03-11 18:54:31 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-06-10 13:54:18 +0200 |
commit | 99a57aa5ee15affa9e38595d90971031977e34be (patch) | |
tree | 701a88959db7936158a1187270ddc9de32ddd8c4 /src/libcharon/plugins/kernel_pfkey | |
parent | 436f64d5bcc3946387dd95265d83d8764fe37797 (diff) | |
download | strongswan-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_pfkey')
-rw-r--r-- | src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c index a0fd42995..d54a96eb5 100644 --- a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c +++ b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c @@ -2199,7 +2199,7 @@ static void add_exclude_route(private_kernel_pfkey_ipsec_t *this, if (!route->exclude) { DBG2(DBG_KNL, "installing new exclude route for %H src %H", dst, src); - gtw = charon->kernel->get_nexthop(charon->kernel, dst, -1, NULL); + gtw = charon->kernel->get_nexthop(charon->kernel, dst, -1, NULL, NULL); if (gtw) { char *if_name = NULL; @@ -2315,7 +2315,7 @@ static bool install_route(private_kernel_pfkey_ipsec_t *this, if (!dst->is_anyaddr(dst)) { route->gateway = charon->kernel->get_nexthop(charon->kernel, dst, -1, - src); + src, NULL); /* if the IP is virtual, we install the route over the interface it has * been installed on. Otherwise we use the interface we use for IKE, as @@ -2329,7 +2329,7 @@ static bool install_route(private_kernel_pfkey_ipsec_t *this, { /* for shunt policies */ route->gateway = charon->kernel->get_nexthop(charon->kernel, policy->src.net, policy->src.mask, - route->src_ip); + route->src_ip, NULL); /* we don't have a source address, use the address we found */ src = route->src_ip; |