Lines Matching refs:natd
446 struct natd_payload *natd;
447 natd = (struct natd_payload *)racoon_malloc(sizeof(*natd));
448 if (!natd)
451 natd->payload = NULL;
453 if (isakmp_p2ph (&natd->payload, pa->ptr) < 0)
456 natd->seq = natd_seq++;
458 TAILQ_INSERT_TAIL(&natd_tree, natd, chain);
503 struct natd_payload *natd = NULL;
514 while ((natd = TAILQ_FIRST(&natd_tree)) != NULL) {
518 natd->payload, natd->seq);
521 natd->seq - 1,
524 vfree (natd->payload);
526 TAILQ_REMOVE(&natd_tree, natd, chain);
527 racoon_free (natd);
711 vchar_t *natd[2] = { NULL, NULL };
716 if ((natd[0] = natt_hash_addr (iph1, iph1->remote)) == NULL) {
723 if ((natd[1] = natt_hash_addr (iph1, iph1->local)) == NULL) {
731 natd[0], iph1->natt_options->payload_nat_d);
733 natd[1], iph1->natt_options->payload_nat_d);
947 vchar_t *natd[2] = { NULL, NULL };
1040 if ((natd[0] = natt_hash_addr (iph1, iph1->remote)) == NULL) {
1046 if ((natd[1] = natt_hash_addr (iph1, iph1->local)) == NULL) {
1242 plist = isakmp_plist_append(plist, natd[0], iph1->natt_options->payload_nat_d);
1243 plist = isakmp_plist_append(plist, natd[1], iph1->natt_options->payload_nat_d);