Lines Matching refs:isakmp
131 struct isakmp *isakmp; local
142 encrypted = ISSET(((struct isakmp *)msg0->v)->flags, ISAKMP_FLAG_E);
143 msgid = ((struct isakmp *)msg0->v)->msgid;
155 ivm = oakley_newiv2(iph1, ((struct isakmp *)msg0->v)->msgid);
168 if (msg->l < sizeof(*isakmp) + sizeof(*gen)) {
175 isakmp = (struct isakmp *)msg->v;
176 gen = (struct isakmp_gen *)((caddr_t)isakmp + sizeof(struct isakmp));
180 if (isakmp->np != ISAKMP_NPTYPE_HASH) {
195 if (msg->l < sizeof(*isakmp) + ntohs(gen->len) + sizeof(*nd)) {
206 if (ntohs(nd->len) > msg->l - (sizeof(struct isakmp) +
229 hash = oakley_compute_hash1(iph1, isakmp->msgid, payload);
692 isakmp_info_send_nx(isakmp, remote, local, type, data) in isakmp_info_send_nx() argument
693 struct isakmp *isakmp; in isakmp_info_send_nx()
719 memcpy(&iph1->index.i_ck, &isakmp->i_ck, sizeof(cookie_t));
724 iph1->version = isakmp->v;
893 struct isakmp *isakmp; local
961 tlen += sizeof(*isakmp) + payload->l;
972 isakmp = (struct isakmp *)iph2->sendbuf->v;
973 memcpy(&isakmp->i_ck, &iph1->index.i_ck, sizeof(cookie_t));
974 memcpy(&isakmp->r_ck, &iph1->index.r_ck, sizeof(cookie_t));
975 isakmp->np = hash == NULL ? (np & 0xff) : ISAKMP_NPTYPE_HASH;
976 isakmp->v = iph1->version;
977 isakmp->etype = ISAKMP_ETYPE_INFO;
978 isakmp->flags = iph2->flags;
979 memcpy(&isakmp->msgid, &iph2->msgid, sizeof(isakmp->msgid));
980 isakmp->len = htonl(tlen);
981 p = (char *)(isakmp + 1);
1002 if (ISSET(isakmp->flags, ISAKMP_FLAG_E)) {