Lines Matching defs:iph1

122 natt_hash_addr (struct ph1handle *iph1, struct sockaddr *addr)
131 saddr2str(addr), iph1->approval->hashtype,
132 (iph1->rmconf->nat_traversal == NATT_FORCE)?"(NAT-T forced)":"");
158 memcpy (ptr, iph1->index.i_ck, sizeof (cookie_t));
162 memcpy (ptr, iph1->index.r_ck, sizeof (cookie_t));
166 if (iph1->rmconf->nat_traversal == NATT_FORCE)
175 natd = oakley_hash (buf, iph1);
182 natt_compare_addr_hash (struct ph1handle *iph1, vchar_t *natd_received,
189 if (iph1->rmconf->nat_traversal == NATT_FORCE)
193 natd_computed = natt_hash_addr (iph1, iph1->local);
197 natd_computed = natt_hash_addr (iph1, iph1->remote);
208 iph1->natt_flags &= ~flag;
288 natt_float_ports (struct ph1handle *iph1)
290 if (! (iph1->natt_flags & NAT_DETECTED) )
292 if (! iph1->natt_options->float_port){
294 natt_keepalive_add_ph1 (iph1);
298 set_port (iph1->local, iph1->natt_options->float_port);
299 set_port (iph1->remote, iph1->natt_options->float_port);
300 iph1->natt_flags |= NAT_PORTS_CHANGED | NAT_ADD_NON_ESP_MARKER;
302 natt_keepalive_add_ph1 (iph1);
306 natt_handle_vendorid (struct ph1handle *iph1, int vid_numeric)
308 if (! iph1->natt_options)
309 iph1->natt_options = racoon_calloc (1, sizeof (*iph1->natt_options));
311 if (! iph1->natt_options) {
317 if (iph1->natt_options->version < vid_numeric)
318 if (natt_fill_options (iph1->natt_options, vid_numeric) == 0)
319 iph1->natt_flags |= NAT_ANNOUNCED;
410 natt_keepalive_add_ph1 (struct ph1handle *iph1)
415 If yes, add '(iph1->natt_flags & NAT_DETECTED_ME)'
417 if (iph1->natt_flags & NAT_DETECTED &&
418 ! (iph1->natt_flags & NAT_KA_QUEUED)) {
419 ret = natt_keepalive_add (iph1->local, iph1->remote);
421 iph1->natt_flags |= NAT_KA_QUEUED;