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/kernel/kernel_net.h | |
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/kernel/kernel_net.h')
-rw-r--r-- | src/libcharon/kernel/kernel_net.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libcharon/kernel/kernel_net.h b/src/libcharon/kernel/kernel_net.h index 4f3063deb..1d78d6edd 100644 --- a/src/libcharon/kernel/kernel_net.h +++ b/src/libcharon/kernel/kernel_net.h @@ -1,7 +1,7 @@ /* - * Copyright (C) 2008-2012 Tobias Brunner + * Copyright (C) 2008-2016 Tobias Brunner * Copyright (C) 2007 Martin Willi - * Hochschule fuer Technik Rapperswil + * HSR Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -88,10 +88,12 @@ struct kernel_net_t { * @param dest target destination address * @param prefix prefix length if dest is a subnet, -1 for auto * @param src source address to check, or NULL + * @param[out] iface allocated name of the interface to reach dest, if + * available (optional) * @return next hop address, NULL if unreachable */ host_t* (*get_nexthop)(kernel_net_t *this, host_t *dest, int prefix, - host_t *src); + host_t *src, char **iface); /** * Get the interface name of a local address. Interfaces that are down or |