diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-09-25 07:56:58 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-09-25 07:56:58 +0000 |
commit | 507f26f685b83ced2b2cd51465ad426bf87f2da5 (patch) | |
tree | 456b6867954670978a0327ec1365bc716f645b7a /src/charon/sa/tasks/ike_mobike.c | |
parent | 80fc5bd95ca370844f3b5c32f84718ed51da283b (diff) | |
download | strongswan-507f26f685b83ced2b2cd51465ad426bf87f2da5.tar.bz2 strongswan-507f26f685b83ced2b2cd51465ad426bf87f2da5.tar.xz |
merging modularized kernel interface back to trunk
Diffstat (limited to 'src/charon/sa/tasks/ike_mobike.c')
-rw-r--r-- | src/charon/sa/tasks/ike_mobike.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/charon/sa/tasks/ike_mobike.c b/src/charon/sa/tasks/ike_mobike.c index da292d561..25b874df5 100644 --- a/src/charon/sa/tasks/ike_mobike.c +++ b/src/charon/sa/tasks/ike_mobike.c @@ -177,15 +177,15 @@ static void process_payloads(private_ike_mobike_t *this, message_t *message) */ static void build_address_list(private_ike_mobike_t *this, message_t *message) { - iterator_t *iterator; + enumerator_t *enumerator; host_t *host, *me; notify_type_t type; bool additional = FALSE; me = this->ike_sa->get_my_host(this->ike_sa); - iterator = charon->kernel_interface->create_address_iterator( - charon->kernel_interface); - while (iterator->iterate(iterator, (void**)&host)) + enumerator = charon->kernel_interface->create_address_enumerator( + charon->kernel_interface, FALSE, FALSE); + while (enumerator->enumerate(enumerator, (void**)&host)) { if (me->ip_equals(me, host)) { /* "ADDITIONAL" means do not include IKE_SAs host */ @@ -209,7 +209,7 @@ static void build_address_list(private_ike_mobike_t *this, message_t *message) { message->add_notify(message, FALSE, NO_ADDITIONAL_ADDRESSES, chunk_empty); } - iterator->destroy(iterator); + enumerator->destroy(enumerator); } /** |