Lines Matching defs:pr
1156 struct saprop *pr0, *pr = NULL;
1172 pr = cmpsaprop_alloc(iph2->ph1, q1, q2, iph2->side);
1173 if (pr != NULL)
1188 iph2->approval = pr;
1202 for (sp = pr->head; sp; sp = sp->next) {
1637 struct saproto *pr;
1662 for (pr = pp->head; pr; pr = pr->next) {
1663 if (p->prop->proto_id == pr->proto_id &&
1664 p->trns->t_id == pr->head->trns_id) {
1668 if (!pr)
1675 spi = (u_int8_t *)&pr->spi;
1676 spi += sizeof(pr->spi);
1677 spi -= pr->spisize;
1678 memcpy((caddr_t)p->prop + sizeof(*p->prop), spi, pr->spisize);
1701 struct saproto *pr;
1718 for (pr = pp->head; pr; pr = pr->next) {
1720 + pr->spisize);
1722 for (tr = pr->head; tr; tr = tr->next) {
1749 for (pr = pp->head; pr; pr = pr->next) {
1753 for (tr = pr->head; tr; tr = tr->next) {
2941 setph2proposal0(iph2, pp, pr)
2944 const struct saproto *pr;
2959 p = vmalloc(sizeof(*prop) + sizeof(pr->spi));
2967 prop->proto_id = pr->proto_id;
2970 spi = (const u_int8_t *)&pr->spi;
2971 switch (pr->proto_id) {
2981 spi += sizeof(pr->spi) - sizeof(u_int16_t);
2982 p->l -= sizeof(pr->spi);
2986 prop->spi_size = sizeof(pr->spi);
2995 for (tr = pr->head; tr; tr = tr->next) {
2997 switch (pr->proto_id) {
3032 switch (pr->proto_id) {
3052 "invalid protocol: %d\n", pr->proto_id);
3111 x = isakmp_set_attr_l(x, IPSECDOI_ATTR_ENC_MODE, pr->encmode);
3117 if ((pr->proto_id == IPSECDOI_PROTO_IPSEC_ESP && tr->authtype != IPSECDOI_ATTR_AUTH_NONE)
3118 || pr->proto_id == IPSECDOI_PROTO_IPSEC_AH)
3240 struct saproto *pr = NULL;
3243 for (pr = pp->head; pr; pr = pr->next) {
3244 if (pr->encmode != IPSECDOI_ATTR_ENC_MODE_TRNS)
4613 ipsecdoi_t2satrns(t, pp, pr, tr)
4616 struct saproto *pr;
4767 if (pr->encmode &&
4768 pr->encmode != (u_int16_t)ntohs(d->lorv)) {
4774 pr->encmode = (u_int16_t)ntohs(d->lorv);
4788 if (pr->proto_id != IPSECDOI_PROTO_IPSEC_ESP) {