Home | History | Annotate | Download | only in racoon

Lines Matching refs:iph1

123 natt_hash_addr (struct ph1handle *iph1, struct sockaddr *addr)
132 if (iph1->rmconf != NULL && iph1->rmconf->nat_traversal == NATT_FORCE)
136 saddr2str(addr), iph1->approval->hashtype,
163 memcpy (ptr, iph1->index.i_ck, sizeof (cookie_t));
167 memcpy (ptr, iph1->index.r_ck, sizeof (cookie_t));
180 natd = oakley_hash (buf, iph1);
187 natt_compare_addr_hash (struct ph1handle *iph1, vchar_t *natd_received,
194 if (iph1->rmconf != NULL &&
195 iph1->rmconf->nat_traversal == NATT_FORCE)
199 natd_computed = natt_hash_addr (iph1, iph1->local);
203 natd_computed = natt_hash_addr (iph1, iph1->remote);
214 iph1->natt_flags &= ~flag;
294 natt_float_ports (struct ph1handle *iph1)
296 if (! (iph1->natt_flags & NAT_DETECTED) )
298 if (! iph1->natt_options->float_port){
300 natt_keepalive_add_ph1 (iph1);
304 set_port (iph1->local, iph1->natt_options->float_port);
305 set_port (iph1->remote, iph1->natt_options->float_port);
306 iph1->natt_flags |= NAT_PORTS_CHANGED | NAT_ADD_NON_ESP_MARKER;
308 natt_keepalive_add_ph1 (iph1);
320 natt_handle_vendorid (struct ph1handle *iph1, int vid_numeric)
322 if (iph1->rmconf == NULL) {
325 rmconf_selector_from_ph1(&rmconf, iph1);
329 if (!iph1->rmconf->nat_traversal)
333 if (! iph1->natt_options)
334 iph1->natt_options = racoon_calloc (1, sizeof (*iph1->natt_options));
336 if (! iph1->natt_options) {
342 if (iph1->natt_options->version < vid_numeric)
343 if (natt_fill_options (iph1->natt_options, vid_numeric) == 0)
344 iph1->natt_flags |= NAT_ANNOUNCED;
435 natt_keepalive_add_ph1 (struct ph1handle *iph1)
440 If yes, add '(iph1->natt_flags & NAT_DETECTED_ME)'
442 if (iph1->natt_flags & NAT_DETECTED &&
443 ! (iph1->natt_flags & NAT_KA_QUEUED)) {
444 ret = natt_keepalive_add (iph1->local, iph1->remote);
446 iph1->natt_flags |= NAT_KA_QUEUED;