Home | History | Annotate | Download | only in racoon

Lines Matching defs:pa

318 	struct isakmp_parse_t *pa;
353 pa = (struct isakmp_parse_t *)pbuf->v;
356 if (pa->type != ISAKMP_NPTYPE_HASH) {
360 pa->type, ISAKMP_NPTYPE_HASH);
363 hash = (struct isakmp_pl_hash *)pa->ptr;
364 pa++;
372 if (pa->type != ISAKMP_NPTYPE_SA) {
376 pa->type, ISAKMP_NPTYPE_HASH);
397 for (; pa->type; pa++) {
401 memcpy(p, pa->ptr, pa->len);
403 switch (pa->type) {
411 if (isakmp_p2ph(&iph2->sa_ret, pa->ptr) < 0)
416 if (isakmp_p2ph(&iph2->nonce_p, pa->ptr) < 0)
421 if (isakmp_p2ph(&iph2->dhpub_p, pa->ptr) < 0)
440 if (memcmp(vp->v, (caddr_t)pa->ptr + sizeof(struct isakmp_gen), vp->l)) {
452 isakmp_check_notify(pa->ptr, iph2->ph1);
467 pa->type);
471 p += pa->len;
474 tlen += pa->len;
698 struct isakmp_parse_t *pa;
725 for (pa = (struct isakmp_parse_t *)pbuf->v;
726 pa->type != ISAKMP_NPTYPE_NONE;
727 pa++) {
729 switch (pa->type) {
731 hash = (struct isakmp_pl_hash *)pa->ptr;
739 isakmp_check_notify(pa->ptr, iph2->ph1);
740 notify = vmalloc(pa->len);
746 memcpy(notify->v, pa->ptr, notify->l);
753 pa->type);
842 struct isakmp_parse_t *pa;
879 pa = (struct isakmp_parse_t *)pbuf->v;
882 if (pa->type != ISAKMP_NPTYPE_HASH) {
886 pa->type, ISAKMP_NPTYPE_HASH);
890 hash = (struct isakmp_pl_hash *)pa->ptr;
891 pa++;
899 if (pa->type != ISAKMP_NPTYPE_SA) {
903 pa->type, ISAKMP_NPTYPE_SA);
935 for (; pa->type; pa++) {
939 memcpy(p, pa->ptr, pa->len);
941 if (pa->type != ISAKMP_NPTYPE_ID)
944 switch (pa->type) {
951 if (isakmp_p2ph(&iph2->sa, pa->ptr) < 0)
956 if (isakmp_p2ph(&iph2->nonce_p, pa->ptr) < 0)
961 if (isakmp_p2ph(&iph2->dhpub_p, pa->ptr) < 0)
970 if (isakmp_p2ph(&iph2->id_p, pa->ptr) < 0)
983 if (isakmp_p2ph(&iph2->id, pa->ptr) < 0)
995 isakmp_check_notify(pa->ptr, iph2->ph1);
1009 pa->type);
1014 p += pa->len;
1017 tlen += pa->len;
1390 struct isakmp_parse_t *pa;
1416 for (pa = (struct isakmp_parse_t *)pbuf->v;
1417 pa->type != ISAKMP_NPTYPE_NONE;
1418 pa++) {
1420 switch (pa->type) {
1422 hash = (struct isakmp_pl_hash *)pa->ptr;
1425 isakmp_check_notify(pa->ptr, iph2->ph1);
1432 pa->type);