Lines Matching defs:pa
297 struct isakmp_parse_t *pa;
317 pa = (struct isakmp_parse_t *)pbuf->v;
320 if (pa->type != ISAKMP_NPTYPE_SA) {
324 pa->type, ISAKMP_NPTYPE_SA);
327 if (isakmp_p2ph(&satmp, pa->ptr) < 0)
329 pa++;
332 pa->type != ISAKMP_NPTYPE_NONE;
333 pa++) {
335 switch (pa->type) {
337 if (isakmp_p2ph(&iph1->nonce_p, pa->ptr) < 0)
341 if (isakmp_p2ph(&iph1->id_p, pa->ptr) < 0)
345 handle_vendorid(iph1, pa->ptr);
352 pa->type);
589 struct isakmp_parse_t *pa;
609 for (pa = (struct isakmp_parse_t *)pbuf->v;
610 pa->type != ISAKMP_NPTYPE_NONE;
611 pa++) {
613 switch (pa->type) {
615 if (isakmp_p2ph(&iph1->dhpub_p, pa->ptr) < 0)
619 iph1->pl_hash = (struct isakmp_pl_hash *)pa->ptr;
622 if (oakley_savecert(iph1, pa->ptr) < 0)
626 if (isakmp_p2ph(&iph1->sig_p, pa->ptr) < 0)
630 handle_vendorid(iph1, pa->ptr);
637 pa->type == iph1->natt_options->payload_nat_d) {
639 if (isakmp_p2ph (&natd_received, pa->ptr) < 0)
667 pa->type);
793 struct isakmp_parse_t *pa;
811 pa = (struct isakmp_parse_t *)pbuf->v;
814 if (pa->type != ISAKMP_NPTYPE_SA) {
818 pa->type, ISAKMP_NPTYPE_SA);
821 if (isakmp_p2ph(&iph1->sa, pa->ptr) < 0)
823 pa++;
826 pa->type != ISAKMP_NPTYPE_NONE;
827 pa++) {
829 switch (pa->type) {
831 if (isakmp_p2ph(&iph1->nonce_p, pa->ptr) < 0)
835 if (isakmp_p2ph(&iph1->id_p, pa->ptr) < 0)
839 vid_numeric = handle_vendorid(iph1, pa->ptr);
842 (vendorid_frag_cap(pa->ptr) & VENDORID_FRAG_BASE))
851 pa->type);
1078 struct isakmp_parse_t *pa;
1099 for (pa = (struct isakmp_parse_t *)pbuf->v;
1100 pa->type != ISAKMP_NPTYPE_NONE;
1101 pa++) {
1103 switch (pa->type) {
1105 if (isakmp_p2ph(&iph1->dhpub_p, pa->ptr) < 0)
1109 iph1->pl_hash = (struct isakmp_pl_hash *)pa->ptr;
1112 if (oakley_savecert(iph1, pa->ptr) < 0)
1116 if (isakmp_p2ph(&iph1->sig_p, pa->ptr) < 0)
1120 handle_vendorid(iph1, pa->ptr);
1126 if (pa->type == iph1->natt_options->payload_nat_d)
1131 if (isakmp_p2ph (&natd_received, pa->ptr) < 0)
1155 pa->type);