Lines Matching refs:pr1
200 struct saproto *pr1, *pr2, *newpr = NULL; local
366 for (pr1 = pp1->head; pr1; pr1 = pr1->next)
374 pr1 = pp1->head;
387 for (pr1 = pp1->head; pr1; pr1 = pr1->next) {
388 if (pr1->proto_id == pr2->proto_id)
393 if (!pr1)
396 if (pr2->proto_id == pr1->proto_id)
402 if (!pr1 || !pr2)
405 if (pr1->proto_id != pr2->proto_id) {
410 s_ipsecdoi_proto(pr1->proto_id));
414 if (pr1->spisize == pr2->spisize)
416 else if (pr1->proto_id == IPSECDOI_PROTO_IPCOMP) {
421 if (pr1->spisize == sizeof(u_int16_t) &&
425 pr1->spisize == sizeof(u_int32_t)) {
438 (int)pr2->spisize, (int)pr1->spisize);
454 natt_udp_encap (pr1->encmode))
457 s_ipsecdoi_encmode(pr1->encmode),
458 pr1->encmode,
459 s_ipsecdoi_encmode(pr1->encmode - ph1->natt_options->mode_udp_diff),
460 pr1->encmode - ph1->natt_options->mode_udp_diff);
461 pr1->encmode -= ph1->natt_options->mode_udp_diff;
462 pr1->udp_encap = 1;
466 if (pr1->encmode != pr2->encmode) {
471 s_ipsecdoi_encmode(pr1->encmode));
475 for (tr1 = pr1->head; tr1; tr1 = tr1->next) {
477 if (cmpsatrns(pr1->proto_id, tr1, tr2, ph1->rmconf->pcheck_level) == 0)
491 newpr->proto_id = pr1->proto_id;
492 newpr->spisize = pr1->spisize;
493 newpr->encmode = pr1->encmode;
495 newpr->spi_p = pr1->spi; /* copy peer's SPI */
499 newpr->udp_encap = pr1->udp_encap | pr2->udp_encap;
517 pr1 = pr1->next;
526 pr1 = NULL;
529 if (!pr1)
536 if (pr1 != NULL || pr2 != NULL)