aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/sa/ike_sa.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-03-02 17:08:38 +0000
committerMartin Willi <martin@strongswan.org>2007-03-02 17:08:38 +0000
commit1d51abb71b2348ce90881ecd8b623892c3a1be81 (patch)
treef78dc2eacf535465554408e2ccb53825aa00425f /src/charon/sa/ike_sa.c
parentebc59e3bb8f5d983aba8dd0f131f893c9ade30af (diff)
downloadstrongswan-1d51abb7.tar.bz2
strongswan-1d51abb7.tar.xz
implemented get_iface() using RTM_GETADDR
added support for multi-header netlink messages really ugly now, need a lot of refactoring
Diffstat (limited to 'src/charon/sa/ike_sa.c')
-rw-r--r--src/charon/sa/ike_sa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charon/sa/ike_sa.c b/src/charon/sa/ike_sa.c
index aac786cd7..3bee1515d 100644
--- a/src/charon/sa/ike_sa.c
+++ b/src/charon/sa/ike_sa.c
@@ -1620,11 +1620,11 @@ static void set_virtual_ip(private_ike_sa_t *this, bool local, host_t *ip)
DBG1(DBG_IKE, "removing old virtual IP %H", this->my_virtual_ip);
charon->kernel_interface->del_ip(charon->kernel_interface,
this->my_virtual_ip,
- this->other_host);
+ this->my_host);
this->my_virtual_ip->destroy(this->my_virtual_ip);
}
if (charon->kernel_interface->add_ip(charon->kernel_interface, ip,
- this->other_host) == SUCCESS)
+ this->my_host) == SUCCESS)
{
this->my_virtual_ip = ip->clone(ip);
}
@@ -1848,7 +1848,7 @@ static void destroy(private_ike_sa_t *this)
if (this->my_virtual_ip)
{
charon->kernel_interface->del_ip(charon->kernel_interface,
- this->my_virtual_ip, this->other_host);
+ this->my_virtual_ip, this->my_host);
this->my_virtual_ip->destroy(this->my_virtual_ip);
}
DESTROY_IF(this->other_virtual_ip);