Lines Matching refs:pr
167 inssatrns(pr, new)
168 struct saproto *pr;
173 for (tr = pr->head; tr && tr->next; tr = tr->next)
176 pr->head = new;
637 set_satrnsbysainfo(pr, sainfo)
638 struct saproto *pr;
645 switch (pr->proto_id) {
670 inssatrns(pr, newtr);
695 inssatrns(pr, newtr);
720 inssatrns(pr, newtr);
725 "unknown proto_id (%d).\n", pr->proto_id);
730 if (pr->head == NULL) {
738 flushsatrns(pr->head);
939 printsaproto(pri, pr)
941 const struct saproto *pr;
945 if (pr == NULL)
951 s_ipsecdoi_proto(pr->proto_id),
952 (int)pr->spisize,
953 (unsigned long)ntohl(pr->spi),
954 (unsigned long)ntohl(pr->spi_p),
955 s_ipsecdoi_attr_v(IPSECDOI_ATTR_ENC_MODE, pr->encmode),
956 (int)pr->reqid_in, (int)pr->reqid_out);
958 for (tr = pr->head; tr; tr = tr->next) {
959 printsatrns(pri, pr->proto_id, tr);
1136 struct saproto *pr;
1139 pr = newpp->head;
1140 while (req && pr) {
1142 pr->reqid_in = req->saidx.reqid;
1144 pr->reqid_out = req->saidx.reqid;
1145 pr = pr->next;
1148 if (pr || req) {
1175 struct saproto *newpr = NULL, *pr;
1227 for (pr = pp_peer->head; pr; pr = pr->next)
1239 newpr->proto_id = pr->proto_id;
1240 newpr->spisize = pr->spisize;
1241 newpr->encmode = pr->encmode;
1243 newpr->spi_p = pr->spi; /* copy peer's SPI */