]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/sa/tasks/ike_mobike.c
Send list of additional addresses even if current path is still valid.
[thirdparty/strongswan.git] / src / libcharon / sa / tasks / ike_mobike.c
CommitLineData
17d92e97
MW
1/*
2 * Copyright (C) 2007 Martin Willi
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16#include "ike_mobike.h"
17
18#include <string.h>
19
f6659688 20#include <hydra.h>
17d92e97 21#include <daemon.h>
4cb9d7a7 22#include <sa/tasks/ike_natd.h>
17d92e97
MW
23#include <encoding/payloads/notify_payload.h>
24
85a119bc 25#define COOKIE2_SIZE 16
a1466a3e 26#define MAX_ADDITIONAL_ADDRS 8
17d92e97
MW
27
28typedef struct private_ike_mobike_t private_ike_mobike_t;
29
30/**
31 * Private members of a ike_mobike_t task.
32 */
33struct private_ike_mobike_t {
7daf5226 34
17d92e97
MW
35 /**
36 * Public methods and task_t interface.
37 */
38 ike_mobike_t public;
7daf5226 39
17d92e97
MW
40 /**
41 * Assigned IKE_SA.
42 */
43 ike_sa_t *ike_sa;
7daf5226 44
17d92e97
MW
45 /**
46 * Are we the initiator?
47 */
48 bool initiator;
7daf5226 49
17d92e97 50 /**
3bc62fe7 51 * cookie2 value to verify new addresses
17d92e97 52 */
3bc62fe7 53 chunk_t cookie2;
7daf5226 54
17d92e97 55 /**
3bc62fe7 56 * NAT discovery reusing the IKE_NATD task
17d92e97 57 */
3bc62fe7 58 ike_natd_t *natd;
7daf5226 59
4cb9d7a7 60 /**
3bc62fe7 61 * use task to update addresses
4cb9d7a7 62 */
5474dc65 63 bool update;
7daf5226 64
5474dc65
MW
65 /**
66 * do routability check
67 */
68 bool check;
7daf5226 69
4cb9d7a7 70 /**
3bc62fe7 71 * include address list update
4cb9d7a7 72 */
3bc62fe7 73 bool address;
769c69fa
TB
74
75 /**
76 * additional addresses got updated
77 */
78 bool addresses_updated;
17d92e97
MW
79};
80
81/**
82 * flush the IKE_SAs list of additional addresses
83 */
84static void flush_additional_addresses(private_ike_mobike_t *this)
85{
86 iterator_t *iterator;
87 host_t *host;
7daf5226 88
17d92e97
MW
89 iterator = this->ike_sa->create_additional_address_iterator(this->ike_sa);
90 while (iterator->iterate(iterator, (void**)&host))
91 {
92 iterator->remove(iterator);
93 host->destroy(host);
94 }
95 iterator->destroy(iterator);
96}
97
98
99/**
100 * read notifys from message and evaluate them
101 */
102static void process_payloads(private_ike_mobike_t *this, message_t *message)
103{
a44bb934 104 enumerator_t *enumerator;
17d92e97
MW
105 payload_t *payload;
106 bool first = TRUE;
7daf5226 107
a44bb934
MW
108 enumerator = message->create_payload_enumerator(message);
109 while (enumerator->enumerate(enumerator, &payload))
17d92e97
MW
110 {
111 int family = AF_INET;
112 notify_payload_t *notify;
113 chunk_t data;
114 host_t *host;
7daf5226 115
17d92e97
MW
116 if (payload->get_type(payload) != NOTIFY)
117 {
118 continue;
119 }
120 notify = (notify_payload_t*)payload;
121 switch (notify->get_notify_type(notify))
122 {
123 case MOBIKE_SUPPORTED:
124 {
78279973 125 peer_cfg_t *peer_cfg;
7daf5226 126
78279973 127 peer_cfg = this->ike_sa->get_peer_cfg(this->ike_sa);
7daf5226 128 if (!this->initiator &&
78279973
MW
129 peer_cfg && !peer_cfg->use_mobike(peer_cfg))
130 {
131 DBG1(DBG_IKE, "peer supports MOBIKE, but disabled in config");
132 }
133 else
134 {
135 DBG1(DBG_IKE, "peer supports MOBIKE");
136 this->ike_sa->enable_extension(this->ike_sa, EXT_MOBIKE);
137 }
17d92e97
MW
138 break;
139 }
85a119bc
MW
140 case COOKIE2:
141 {
142 chunk_free(&this->cookie2);
143 this->cookie2 = chunk_clone(notify->get_notification_data(notify));
144 break;
145 }
17d92e97
MW
146 case ADDITIONAL_IP6_ADDRESS:
147 {
148 family = AF_INET6;
149 /* fall through */
150 }
151 case ADDITIONAL_IP4_ADDRESS:
152 {
153 if (first)
154 { /* an ADDITIONAL_*_ADDRESS means replace, so flush once */
155 flush_additional_addresses(this);
4cb9d7a7 156 first = FALSE;
17d92e97
MW
157 }
158 data = notify->get_notification_data(notify);
159 host = host_create_from_chunk(family, data, 0);
160 DBG2(DBG_IKE, "got additional MOBIKE peer address: %H", host);
161 this->ike_sa->add_additional_address(this->ike_sa, host);
769c69fa 162 this->addresses_updated = TRUE;
17d92e97
MW
163 break;
164 }
3bc62fe7
MW
165 case UPDATE_SA_ADDRESSES:
166 {
5474dc65 167 this->update = TRUE;
3bc62fe7
MW
168 break;
169 }
17d92e97
MW
170 case NO_ADDITIONAL_ADDRESSES:
171 {
172 flush_additional_addresses(this);
769c69fa 173 this->addresses_updated = TRUE;
17d92e97
MW
174 break;
175 }
fc2d1c42
MW
176 case NAT_DETECTION_SOURCE_IP:
177 case NAT_DETECTION_DESTINATION_IP:
178 {
179 /* NAT check in this MOBIKE exchange, create subtask for it */
180 if (this->natd == NULL)
181 {
182 this->natd = ike_natd_create(this->ike_sa, this->initiator);
183 }
184 break;
185 }
17d92e97
MW
186 default:
187 break;
188 }
189 }
a44bb934 190 enumerator->destroy(enumerator);
17d92e97
MW
191}
192
193/**
194 * Add ADDITIONAL_*_ADDRESS notifys depending on our address list
195 */
196static void build_address_list(private_ike_mobike_t *this, message_t *message)
197{
507f26f6 198 enumerator_t *enumerator;
17d92e97
MW
199 host_t *host, *me;
200 notify_type_t type;
a1466a3e 201 int added = 0;
7daf5226 202
17d92e97 203 me = this->ike_sa->get_my_host(this->ike_sa);
f6659688
TB
204 enumerator = hydra->kernel_interface->create_address_enumerator(
205 hydra->kernel_interface, FALSE, FALSE);
507f26f6 206 while (enumerator->enumerate(enumerator, (void**)&host))
17d92e97
MW
207 {
208 if (me->ip_equals(me, host))
209 { /* "ADDITIONAL" means do not include IKE_SAs host */
210 continue;
211 }
212 switch (host->get_family(host))
213 {
214 case AF_INET:
215 type = ADDITIONAL_IP4_ADDRESS;
216 break;
217 case AF_INET6:
218 type = ADDITIONAL_IP6_ADDRESS;
219 break;
220 default:
221 continue;
222 }
223 message->add_notify(message, FALSE, type, host->get_address(host));
a1466a3e
MW
224 if (++added >= MAX_ADDITIONAL_ADDRS)
225 { /* limit number of notifys, some implementations do not like too
226 * many of them (f.e. strongSwan ;-) */
227 break;
228 }
17d92e97 229 }
a1466a3e 230 if (!added)
17d92e97
MW
231 {
232 message->add_notify(message, FALSE, NO_ADDITIONAL_ADDRESSES, chunk_empty);
233 }
507f26f6 234 enumerator->destroy(enumerator);
17d92e97
MW
235}
236
85a119bc 237/**
7daf5226 238 * build a cookie and add it to the message
85a119bc
MW
239 */
240static void build_cookie(private_ike_mobike_t *this, message_t *message)
241{
242 rng_t *rng;
243
244 chunk_free(&this->cookie2);
245 rng = lib->crypto->create_rng(lib->crypto, RNG_STRONG);
246 if (rng)
247 {
248 rng->allocate_bytes(rng, COOKIE2_SIZE, &this->cookie2);
249 rng->destroy(rng);
250 message->add_notify(message, FALSE, COOKIE2, this->cookie2);
251 }
252}
253
3bc62fe7
MW
254/**
255 * update addresses of associated CHILD_SAs
256 */
257static void update_children(private_ike_mobike_t *this)
258{
259 iterator_t *iterator;
260 child_sa_t *child_sa;
7daf5226 261
3bc62fe7
MW
262 iterator = this->ike_sa->create_child_sa_iterator(this->ike_sa);
263 while (iterator->iterate(iterator, (void**)&child_sa))
264 {
3aaf7908 265 if (child_sa->update(child_sa,
7daf5226 266 this->ike_sa->get_my_host(this->ike_sa),
ea625fab
TB
267 this->ike_sa->get_other_host(this->ike_sa),
268 this->ike_sa->get_virtual_ip(this->ike_sa, TRUE),
269 this->ike_sa->has_condition(this->ike_sa, COND_NAT_ANY)) == NOT_SUPPORTED)
270 {
271 this->ike_sa->rekey_child_sa(this->ike_sa,
272 child_sa->get_protocol(child_sa),
273 child_sa->get_spi(child_sa, TRUE));
274 }
3bc62fe7
MW
275 }
276 iterator->destroy(iterator);
277}
278
cc2eadde 279/**
be901342 280 * Apply the port of the old host, if its ip equals the new, use port otherwise.
cc2eadde 281 */
be901342 282static void apply_port(host_t *host, host_t *old, u_int16_t port)
cc2eadde
MW
283{
284 if (host->ip_equals(host, old))
285 {
be901342 286 port = old->get_port(old);
cc2eadde 287 }
be901342 288 else if (port == IKEV2_UDP_PORT)
cc2eadde 289 {
be901342 290 port = IKEV2_NATT_PORT;
cc2eadde 291 }
be901342 292 host->set_port(host, port);
cc2eadde
MW
293}
294
c817e7bb
TB
295METHOD(ike_mobike_t, transmit, void,
296 private_ike_mobike_t *this, packet_t *packet)
5474dc65
MW
297{
298 host_t *me, *other, *me_old, *other_old;
299 iterator_t *iterator;
cc2eadde 300 ike_cfg_t *ike_cfg;
5474dc65 301 packet_t *copy;
7daf5226 302
5474dc65
MW
303 if (!this->check)
304 {
305 return;
306 }
307
308 me_old = this->ike_sa->get_my_host(this->ike_sa);
309 other_old = this->ike_sa->get_other_host(this->ike_sa);
cc2eadde 310 ike_cfg = this->ike_sa->get_ike_cfg(this->ike_sa);
7daf5226 311
f6659688
TB
312 me = hydra->kernel_interface->get_source_addr(
313 hydra->kernel_interface, other_old, NULL);
5474dc65
MW
314 if (me)
315 {
be901342 316 apply_port(me, me_old, ike_cfg->get_my_port(ike_cfg));
387a6e6c
MW
317 DBG1(DBG_IKE, "checking original path %#H - %#H", me, other_old);
318 copy = packet->clone(packet);
319 copy->set_source(copy, me);
320 charon->sender->send(charon->sender, copy);
5474dc65 321 }
7daf5226 322
5474dc65
MW
323 iterator = this->ike_sa->create_additional_address_iterator(this->ike_sa);
324 while (iterator->iterate(iterator, (void**)&other))
325 {
f6659688
TB
326 me = hydra->kernel_interface->get_source_addr(
327 hydra->kernel_interface, other, NULL);
5474dc65
MW
328 if (me)
329 {
de3d65a1
MW
330 if (me->get_family(me) != other->get_family(other))
331 {
332 me->destroy(me);
333 continue;
334 }
5474dc65 335 /* reuse port for an active address, 4500 otherwise */
be901342 336 apply_port(me, me_old, ike_cfg->get_my_port(ike_cfg));
5474dc65 337 other = other->clone(other);
be901342 338 apply_port(other, other_old, ike_cfg->get_other_port(ike_cfg));
d9d69536 339 DBG1(DBG_IKE, "checking path %#H - %#H", me, other);
5474dc65
MW
340 copy = packet->clone(packet);
341 copy->set_source(copy, me);
342 copy->set_destination(copy, other);
343 charon->sender->send(charon->sender, copy);
344 }
345 }
346 iterator->destroy(iterator);
347}
348
c817e7bb
TB
349METHOD(task_t, build_i, status_t,
350 private_ike_mobike_t *this, message_t *message)
17d92e97 351{
31e7dc4d
TB
352 if (message->get_exchange_type(message) == IKE_AUTH &&
353 message->get_message_id(message) == 1)
a44bb934 354 { /* only in first IKE_AUTH */
17d92e97
MW
355 message->add_notify(message, FALSE, MOBIKE_SUPPORTED, chunk_empty);
356 build_address_list(this, message);
357 }
c8739590 358 else if (message->get_exchange_type(message) == INFORMATIONAL)
3bc62fe7 359 {
f0974eb2 360 host_t *old, *new;
7daf5226
MW
361
362 /* we check if the existing address is still valid */
f0974eb2 363 old = message->get_source(message);
f6659688 364 new = hydra->kernel_interface->get_source_addr(hydra->kernel_interface,
f0974eb2
MW
365 message->get_destination(message), old);
366 if (new)
367 {
368 if (!new->ip_equals(new, old))
369 {
370 new->set_port(new, old->get_port(old));
371 message->set_source(message, new);
372 }
373 else
374 {
375 new->destroy(new);
376 }
377 }
5474dc65 378 if (this->update)
fc2d1c42 379 {
31e7dc4d
TB
380 message->add_notify(message, FALSE, UPDATE_SA_ADDRESSES,
381 chunk_empty);
85a119bc 382 build_cookie(this, message);
5474dc65 383 update_children(this);
fc2d1c42 384 }
3bc62fe7
MW
385 if (this->address)
386 {
387 build_address_list(this, message);
388 }
5474dc65
MW
389 if (this->natd)
390 {
391 this->natd->task.build(&this->natd->task, message);
392 }
4cb9d7a7 393 }
17d92e97
MW
394 return NEED_MORE;
395}
396
c817e7bb
TB
397METHOD(task_t, process_r, status_t,
398 private_ike_mobike_t *this, message_t *message)
4cb9d7a7 399{
31e7dc4d
TB
400 if (message->get_exchange_type(message) == IKE_AUTH &&
401 message->get_message_id(message) == 1)
a44bb934 402 { /* only first IKE_AUTH */
4cb9d7a7
MW
403 process_payloads(this, message);
404 }
fc2d1c42
MW
405 else if (message->get_exchange_type(message) == INFORMATIONAL)
406 {
407 process_payloads(this, message);
5474dc65 408 if (this->update)
3bc62fe7
MW
409 {
410 host_t *me, *other;
7daf5226 411
3bc62fe7
MW
412 me = message->get_destination(message);
413 other = message->get_source(message);
414 this->ike_sa->set_my_host(this->ike_sa, me->clone(me));
415 this->ike_sa->set_other_host(this->ike_sa, other->clone(other));
416 }
7daf5226 417
fc2d1c42
MW
418 if (this->natd)
419 {
420 this->natd->task.process(&this->natd->task, message);
421 }
769c69fa
TB
422 if (this->addresses_updated && this->ike_sa->has_condition(this->ike_sa,
423 COND_ORIGINAL_INITIATOR))
424 {
425 host_t *other = message->get_source(message);
426 host_t *other_old = this->ike_sa->get_other_host(this->ike_sa);
427 if (!other->equals(other, other_old))
428 {
429 DBG1(DBG_IKE, "remote address changed from %H to %H", other_old,
430 other);
431 this->ike_sa->set_other_host(this->ike_sa, other->clone(other));
432 this->update = TRUE;
433 }
434 }
fc2d1c42 435 }
17d92e97
MW
436 return NEED_MORE;
437}
438
c817e7bb
TB
439METHOD(task_t, build_r, status_t,
440 private_ike_mobike_t *this, message_t *message)
17d92e97
MW
441{
442 if (message->get_exchange_type(message) == IKE_AUTH &&
b8249ff5 443 this->ike_sa->get_state(this->ike_sa) == IKE_ESTABLISHED)
17d92e97
MW
444 {
445 if (this->ike_sa->supports_extension(this->ike_sa, EXT_MOBIKE))
446 {
447 message->add_notify(message, FALSE, MOBIKE_SUPPORTED, chunk_empty);
448 build_address_list(this, message);
449 }
450 return SUCCESS;
451 }
2b3100b5
MW
452 else if (message->get_exchange_type(message) == INFORMATIONAL)
453 {
fc2d1c42
MW
454 if (this->natd)
455 {
456 this->natd->task.build(&this->natd->task, message);
457 }
85a119bc
MW
458 if (this->cookie2.ptr)
459 {
460 message->add_notify(message, FALSE, COOKIE2, this->cookie2);
461 chunk_free(&this->cookie2);
462 }
5474dc65 463 if (this->update)
3bc62fe7
MW
464 {
465 update_children(this);
466 }
2b3100b5
MW
467 return SUCCESS;
468 }
17d92e97
MW
469 return NEED_MORE;
470}
471
c817e7bb
TB
472METHOD(task_t, process_i, status_t,
473 private_ike_mobike_t *this, message_t *message)
17d92e97
MW
474{
475 if (message->get_exchange_type(message) == IKE_AUTH &&
b8249ff5 476 this->ike_sa->get_state(this->ike_sa) == IKE_ESTABLISHED)
17d92e97
MW
477 {
478 process_payloads(this, message);
479 return SUCCESS;
480 }
2b3100b5
MW
481 else if (message->get_exchange_type(message) == INFORMATIONAL)
482 {
3bc62fe7
MW
483 u_int32_t updates = this->ike_sa->get_pending_updates(this->ike_sa) - 1;
484 this->ike_sa->set_pending_updates(this->ike_sa, updates);
485 if (updates > 0)
486 {
487 /* newer update queued, ignore this one */
488 return SUCCESS;
489 }
85a119bc 490 if (this->cookie2.ptr)
9d9a772e 491 { /* check cookie if we included one */
85a119bc 492 chunk_t cookie2;
7daf5226 493
85a119bc
MW
494 cookie2 = this->cookie2;
495 this->cookie2 = chunk_empty;
496 process_payloads(this, message);
497 if (!chunk_equals(cookie2, this->cookie2))
498 {
499 chunk_free(&cookie2);
500 DBG1(DBG_IKE, "COOKIE2 mismatch, closing IKE_SA");
501 return FAILED;
502 }
503 chunk_free(&cookie2);
504 }
505 else
506 {
507 process_payloads(this, message);
508 }
fc2d1c42
MW
509 if (this->natd)
510 {
511 this->natd->task.process(&this->natd->task, message);
9d9a772e
MW
512 if (this->natd->has_mapping_changed(this->natd))
513 {
514 /* force an update if mappings have changed */
515 this->update = this->check = TRUE;
516 DBG1(DBG_IKE, "detected changes in NAT mappings, "
517 "initiating MOBIKE update");
518 }
fc2d1c42 519 }
5474dc65 520 if (this->update)
3bc62fe7
MW
521 {
522 /* update again, as NAT state may have changed */
523 update_children(this);
524 }
5474dc65
MW
525 if (this->check)
526 {
527 host_t *me_new, *me_old, *other_new, *other_old;
7daf5226 528
5474dc65
MW
529 me_new = message->get_destination(message);
530 other_new = message->get_source(message);
531 me_old = this->ike_sa->get_my_host(this->ike_sa);
532 other_old = this->ike_sa->get_other_host(this->ike_sa);
7daf5226 533
5474dc65
MW
534 if (!me_new->equals(me_new, me_old))
535 {
536 this->update = TRUE;
537 this->ike_sa->set_my_host(this->ike_sa, me_new->clone(me_new));
7daf5226 538 }
5474dc65
MW
539 if (!other_new->equals(other_new, other_old))
540 {
541 this->update = TRUE;
542 this->ike_sa->set_other_host(this->ike_sa, other_new->clone(other_new));
543 }
544 if (this->update)
545 {
546 /* start the update with the same task */
547 this->check = FALSE;
548 this->address = FALSE;
12d4186f
MW
549 if (this->natd)
550 {
551 this->natd->task.destroy(&this->natd->task);
552 }
12fa4387 553 this->natd = ike_natd_create(this->ike_sa, this->initiator);
5474dc65
MW
554 this->ike_sa->set_pending_updates(this->ike_sa, 1);
555 return NEED_MORE;
556 }
557 }
2b3100b5
MW
558 return SUCCESS;
559 }
17d92e97
MW
560 return NEED_MORE;
561}
562
13876431
TB
563METHOD(ike_mobike_t, addresses, void,
564 private_ike_mobike_t *this)
565{
566 this->address = TRUE;
567 this->ike_sa->set_pending_updates(this->ike_sa,
568 this->ike_sa->get_pending_updates(this->ike_sa) + 1);
569}
570
c817e7bb
TB
571METHOD(ike_mobike_t, roam, void,
572 private_ike_mobike_t *this, bool address)
17d92e97 573{
5474dc65 574 this->check = TRUE;
3bc62fe7 575 this->address = address;
7daf5226 576 this->ike_sa->set_pending_updates(this->ike_sa,
c817e7bb 577 this->ike_sa->get_pending_updates(this->ike_sa) + 1);
17d92e97
MW
578}
579
c817e7bb
TB
580METHOD(ike_mobike_t, dpd, void,
581 private_ike_mobike_t *this)
9d9a772e
MW
582{
583 if (!this->natd)
584 {
585 this->natd = ike_natd_create(this->ike_sa, this->initiator);
586 }
7daf5226 587 this->ike_sa->set_pending_updates(this->ike_sa,
c817e7bb 588 this->ike_sa->get_pending_updates(this->ike_sa) + 1);
9d9a772e
MW
589}
590
c817e7bb
TB
591METHOD(ike_mobike_t, is_probing, bool,
592 private_ike_mobike_t *this)
f215e919
MW
593{
594 return this->check;
595}
596
c817e7bb
TB
597METHOD(task_t, get_type, task_type_t,
598 private_ike_mobike_t *this)
17d92e97
MW
599{
600 return IKE_MOBIKE;
601}
602
c817e7bb
TB
603METHOD(task_t, migrate, void,
604 private_ike_mobike_t *this, ike_sa_t *ike_sa)
17d92e97 605{
4cb9d7a7 606 chunk_free(&this->cookie2);
17d92e97 607 this->ike_sa = ike_sa;
4cb9d7a7
MW
608 if (this->natd)
609 {
610 this->natd->task.migrate(&this->natd->task, ike_sa);
611 }
17d92e97
MW
612}
613
c817e7bb
TB
614METHOD(task_t, destroy, void,
615 private_ike_mobike_t *this)
17d92e97 616{
4cb9d7a7
MW
617 chunk_free(&this->cookie2);
618 if (this->natd)
619 {
620 this->natd->task.destroy(&this->natd->task);
621 }
17d92e97
MW
622 free(this);
623}
624
625/*
626 * Described in header.
627 */
628ike_mobike_t *ike_mobike_create(ike_sa_t *ike_sa, bool initiator)
629{
c817e7bb
TB
630 private_ike_mobike_t *this;
631
632 INIT(this,
633 .public = {
634 .task = {
635 .get_type = _get_type,
636 .migrate = _migrate,
637 .destroy = _destroy,
638 },
13876431 639 .addresses = _addresses,
c817e7bb
TB
640 .roam = _roam,
641 .dpd = _dpd,
642 .transmit = _transmit,
643 .is_probing = _is_probing,
644 },
645 .ike_sa = ike_sa,
646 .initiator = initiator,
c817e7bb 647 );
7daf5226 648
17d92e97
MW
649 if (initiator)
650 {
c817e7bb
TB
651 this->public.task.build = _build_i;
652 this->public.task.process = _process_i;
17d92e97
MW
653 }
654 else
655 {
c817e7bb
TB
656 this->public.task.build = _build_r;
657 this->public.task.process = _process_r;
17d92e97 658 }
7daf5226 659
17d92e97
MW
660 return &this->public;
661}
662