Lines Matching refs:pr2
200 struct saproto *pr1, *pr2, *newpr = NULL; local
368 for (pr2 = pp2->head; pr2; pr2 = pr2->next)
375 pr2 = pp2->head;
385 if (!pr2)
388 if (pr1->proto_id == pr2->proto_id)
395 for (pr2 = pp2->head; pr2; pr2 = pr2->next) {
396 if (pr2->proto_id == pr1->proto_id)
402 if (!pr1 || !pr2)
405 if (pr1->proto_id != pr2->proto_id) {
409 s_ipsecdoi_proto(pr2->proto_id),
414 if (pr1->spisize == pr2->spisize)
422 pr2->spisize == sizeof(u_int32_t)) {
424 } else if (pr2->spisize == sizeof(u_int16_t) &&
438 (int)pr2->spisize, (int)pr1->spisize);
444 natt_udp_encap (pr2->encmode))
447 s_ipsecdoi_encmode(pr2->encmode),
448 s_ipsecdoi_encmode(pr2->encmode - ph1->natt_options->mode_udp_diff));
449 pr2->encmode -= ph1->natt_options->mode_udp_diff;
450 pr2->udp_encap = 1;
466 if (pr1->encmode != pr2->encmode) {
470 s_ipsecdoi_encmode(pr2->encmode),
476 for (tr2 = pr2->head; tr2; tr2 = tr2->next) {
494 newpr->spi = pr2->spi; /* copy my SPI */
496 newpr->reqid_in = pr2->reqid_in;
497 newpr->reqid_out = pr2->reqid_out;
499 newpr->udp_encap = pr1->udp_encap | pr2->udp_encap;
518 pr2 = pr2->next;
525 if (!pr2)
530 pr2 = NULL;
536 if (pr1 != NULL || pr2 != NULL)