aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/kernel/kernel_net.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-10-08 08:23:46 +0000
committerMartin Willi <martin@strongswan.org>2008-10-08 08:23:46 +0000
commitce5b17082d1f7d03653f068bc81e9f68e8f738e6 (patch)
tree188f3f0ce6d0573c2d5eef02e8cc4c6c3518a764 /src/charon/kernel/kernel_net.h
parente39b271b1791d852b38632a5e9e36911a1f55883 (diff)
downloadstrongswan-ce5b17082d1f7d03653f068bc81e9f68e8f738e6.tar.bz2
strongswan-ce5b17082d1f7d03653f068bc81e9f68e8f738e6.tar.xz
mobike: try to keep existing source address before switching to another
Diffstat (limited to 'src/charon/kernel/kernel_net.h')
-rw-r--r--src/charon/kernel/kernel_net.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/charon/kernel/kernel_net.h b/src/charon/kernel/kernel_net.h
index 998fef0f1..525a9de0f 100644
--- a/src/charon/kernel/kernel_net.h
+++ b/src/charon/kernel/kernel_net.h
@@ -42,11 +42,14 @@ struct kernel_net_t {
*
* Does a route lookup to get the source address used to reach dest.
* The returned host is allocated and must be destroyed.
+ * An optional src address can be used to check if a route is available
+ * for given source to dest.
*
* @param dest target destination address
+ * @param src source address to check, or NULL
* @return outgoing source address, NULL if unreachable
*/
- host_t* (*get_source_addr)(kernel_net_t *this, host_t *dest);
+ host_t* (*get_source_addr)(kernel_net_t *this, host_t *dest, host_t *src);
/**
* Get the next hop for a destination.