Home | History | Annotate | Download | only in racoon

Lines Matching refs:isakmp

81 #include "isakmp.h"
131 struct isakmp *isakmp;
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)) {
176 isakmp = (struct isakmp *)msg->v;
177 gen = (struct isakmp_gen *)((caddr_t)isakmp + sizeof(struct isakmp));
181 if (isakmp->np != ISAKMP_NPTYPE_HASH) {
191 "ignore information because ISAKMP-SA "
197 if (msg->l < sizeof(*isakmp) + ntohs(gen->len) + sizeof(*nd)) {
209 if (ntohs(nd->len) > msg->l - (sizeof(struct isakmp) +
232 hash = oakley_compute_hash1(iph1, isakmp->msgid, payload);
575 * send Delete payload (for ISAKMP SA) in Informational exchange.
690 * send Notification payload (for without ISAKMP SA) in Informational exchange
693 isakmp_info_send_nx(isakmp, remote, local, type, data)
694 struct isakmp *isakmp;
706 /* add new entry to isakmp status table. */
711 memcpy(&iph1->index.i_ck, &isakmp->i_ck, sizeof(cookie_t));
715 iph1->version = isakmp->v;
764 * send Notification payload (for ISAKMP SA) in Informational exchange
782 * RFC2408 3.1, 2nd paragraph says: ISAKMP SA is identified by
784 * RFC2408 3.1, first paragraph on page 40: ISAKMP SA is identified
884 struct isakmp *isakmp;
890 /* add new entry to isakmp status table */
942 tlen += sizeof(*isakmp) + payload->l;
944 /* create buffer for isakmp payload */
952 /* create isakmp header */
953 isakmp = (struct isakmp *)iph2->sendbuf->v;
954 memcpy(&isakmp->i_ck, &iph1->index.i_ck, sizeof(cookie_t));
955 memcpy(&isakmp->r_ck, &iph1->index.r_ck, sizeof(cookie_t));
956 isakmp->np = hash == NULL ? (np & 0xff) : ISAKMP_NPTYPE_HASH;
957 isakmp->v = iph1->version;
958 isakmp->etype = ISAKMP_ETYPE_INFO;
959 isakmp->flags = iph2->flags;
960 memcpy(&isakmp->msgid, &iph2->msgid, sizeof(isakmp->msgid));
961 isakmp->len = htonl(tlen);
962 p = (char *)(isakmp + 1);
983 if (ISSET(isakmp->flags, ISAKMP_FLAG_E)) {
1093 "purged ISAKMP-SA proto_id=%s spi=%s.\n",
1518 "DPD: remote (ISAKMP-SA spi=%s) seems to be dead.\n",