From b185cdd16d1d7553fabf7792928df31ad9eea427 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 12 Nov 2012 10:06:09 +0100 Subject: Install virtual IPs via interface name, and use an interface lookup where required --- src/libhydra/kernel/kernel_interface.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libhydra/kernel/kernel_interface.h') diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h index e3ebce8ee..a5ee0b55b 100644 --- a/src/libhydra/kernel/kernel_interface.h +++ b/src/libhydra/kernel/kernel_interface.h @@ -333,15 +333,14 @@ struct kernel_interface_t { * Virtual IPs are attached to an interface. If an IP is added multiple * times, the IP is refcounted and not removed until del_ip() was called * as many times as add_ip(). - * 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 + * @param iface interface to install virtual IP on * @return SUCCESS if operation completed */ status_t (*add_ip) (kernel_interface_t *this, host_t *virtual_ip, int prefix, - host_t *iface_ip); + char *iface); /** * Remove a virtual IP from an interface. -- cgit v1.2.3