aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/kernel/kernel_interface.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-11-09 15:46:58 +0100
committerMartin Willi <martin@revosec.ch>2012-11-29 10:22:51 +0100
commit50bd755871fefa59857510a620ae66c1400577df (patch)
tree925ee7840a14417ad03cb0dbce1bb0eb98d7bb43 /src/libhydra/kernel/kernel_interface.h
parentfdd94fc846ca2057ab2994e92e712da63f760580 (diff)
downloadstrongswan-50bd755871fefa59857510a620ae66c1400577df.tar.bz2
strongswan-50bd755871fefa59857510a620ae66c1400577df.tar.xz
Add an optional kernel-interface parameter to install IPs with a custom prefix
Diffstat (limited to 'src/libhydra/kernel/kernel_interface.h')
-rw-r--r--src/libhydra/kernel/kernel_interface.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h
index 7058466b1..e3ebce8ee 100644
--- a/src/libhydra/kernel/kernel_interface.h
+++ b/src/libhydra/kernel/kernel_interface.h
@@ -336,10 +336,11 @@ struct kernel_interface_t {
* The virtual IP is attached to the interface where the iface_ip is found.
*
* @param virtual_ip virtual ip address to assign
+ * @param prefix prefix length to install IP with, -1 for auto
* @param iface_ip IP of an interface to attach virtual IP
* @return SUCCESS if operation completed
*/
- status_t (*add_ip) (kernel_interface_t *this, host_t *virtual_ip,
+ status_t (*add_ip) (kernel_interface_t *this, host_t *virtual_ip, int prefix,
host_t *iface_ip);
/**
@@ -348,9 +349,10 @@ struct kernel_interface_t {
* The kernel interface uses refcounting, see add_ip().
*
* @param virtual_ip virtual ip address to assign
+ * @param prefix prefix length of the IP to uninstall, -1 for auto
* @return SUCCESS if operation completed
*/
- status_t (*del_ip) (kernel_interface_t *this, host_t *virtual_ip);
+ status_t (*del_ip) (kernel_interface_t *this, host_t *virtual_ip, int prefix);
/**
* Add a route.