From ce5b17082d1f7d03653f068bc81e9f68e8f738e6 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 8 Oct 2008 08:23:46 +0000 Subject: mobike: try to keep existing source address before switching to another --- src/charon/kernel/kernel_interface.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/charon/kernel/kernel_interface.h') diff --git a/src/charon/kernel/kernel_interface.h b/src/charon/kernel/kernel_interface.h index 49faf7c0c..c87e82526 100644 --- a/src/charon/kernel/kernel_interface.h +++ b/src/charon/kernel/kernel_interface.h @@ -235,11 +235,15 @@ struct kernel_interface_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_interface_t *this, host_t *dest); + host_t* (*get_source_addr)(kernel_interface_t *this, + host_t *dest, host_t *src); /** * Get the next hop for a destination. -- cgit v1.2.3