Home | History | Annotate | Download | only in racoon

Lines Matching defs:isakmp

81 #include "isakmp.h"
132 struct isakmp *isakmp;
143 encrypted = ISSET(((struct isakmp *)msg0->v)->flags, ISAKMP_FLAG_E);
144 msgid = ((struct isakmp *)msg0->v)->msgid;
156 ivm = oakley_newiv2(iph1, ((struct isakmp *)msg0->v)->msgid);
169 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) {
190 "ignore information because ISAKMP-SA"
196 if (msg->l < sizeof(*isakmp) + ntohs(gen->len) + sizeof(*nd)) {
207 if (ntohs(nd->len) > msg->l - (sizeof(struct isakmp) +
230 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;
715 /* add new entry to isakmp status table. */
720 memcpy(&iph1->index.i_ck, &isakmp->i_ck, sizeof(cookie_t));
725 iph1->version = isakmp->v;
774 * send Notification payload (for ISAKMP SA) in Informational exchange
792 * RFC2408 3.1, 2nd paragraph says: ISAKMP SA is identified by
794 * RFC2408 3.1, first paragraph on page 40: ISAKMP SA is identified
894 struct isakmp *isakmp;
900 /* add new entry to isakmp status table */
962 tlen += sizeof(*isakmp) + payload->l;
964 /* create buffer for isakmp payload */
972 /* create isakmp header */
973 isakmp = (struct isakmp *)iph2->sendbuf->v;
974 memcpy(&isakmp->i_ck, &iph1->index.i_ck, sizeof(cookie_t));
975 memcpy(&isakmp->r_ck, &iph1->index.r_ck, sizeof(cookie_t));
976 isakmp->np = hash == NULL ? (np & 0xff) : ISAKMP_NPTYPE_HASH;
977 isakmp->v = iph1->version;
978 isakmp->etype = ISAKMP_ETYPE_INFO;
979 isakmp->flags = iph2->flags;
980 memcpy(&isakmp->msgid, &iph2->msgid, sizeof(isakmp->msgid));
981 isakmp->len = htonl(tlen);
982 p = (char *)(isakmp + 1);
1003 if (ISSET(isakmp->flags, ISAKMP_FLAG_E)) {
1114 "purged ISAKMP-SA proto_id=%s spi=%s.\n",
1631 "DPD: remote (ISAKMP-SA spi=%s) seems to be dead.\n",