diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-06-18 09:55:39 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-06-19 14:33:40 +0200 |
commit | c005073d0ba715153e3bea4c41589d1643ae9b64 (patch) | |
tree | a3485ced3ebbcf84191dc25459f1493650c1f517 /src/libcharon/plugins/kernel_iph | |
parent | 73b22aa842ae0f32d3aaeb79101894cc719ceaf2 (diff) | |
download | strongswan-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_iph')
-rw-r--r-- | src/libcharon/plugins/kernel_iph/kernel_iph_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/kernel_iph/kernel_iph_net.c b/src/libcharon/plugins/kernel_iph/kernel_iph_net.c index 871067b1a..a4be4041e 100644 --- a/src/libcharon/plugins/kernel_iph/kernel_iph_net.c +++ b/src/libcharon/plugins/kernel_iph/kernel_iph_net.c @@ -562,7 +562,7 @@ METHOD(kernel_net_t, get_source_addr, host_t*, } METHOD(kernel_net_t, get_nexthop, host_t*, - private_kernel_iph_net_t *this, host_t *dest, host_t *src) + private_kernel_iph_net_t *this, host_t *dest, int prefix, host_t *src) { MIB_IPFORWARD_ROW2 route; SOCKADDR_INET best, *sai_dst, *sai_src = NULL; |