Home | History | Annotate | Download | only in racoon

Lines Matching full:sizeof

169 	if (msg->l < sizeof(*isakmp) + sizeof(*gen)) {
177 gen = (struct isakmp_gen *)((caddr_t)isakmp + sizeof(struct isakmp));
196 if (msg->l < sizeof(*isakmp) + ntohs(gen->len) + sizeof(*nd)) {
203 p = (caddr_t) gen + sizeof(struct isakmp_gen);
207 if (ntohs(nd->len) > msg->l - (sizeof(struct isakmp) +
214 if (ntohs(nd->len) < sizeof(*nd)) {
239 if (ntohs(gen->len) - sizeof(struct isakmp_gen) != hash->l) {
406 if (ntohs(notify->h.len) < sizeof(*notify) + notify->spi_size) {
425 l = ntohs(notify->h.len) - sizeof(*notify) - notify->spi_size;
428 nraw += sizeof(*notify) + notify->spi_size;
482 tlen = ntohs(delete->h.len) - sizeof(struct isakmp_pl_d);
503 if (delete->spi_size != sizeof(isakmp_index)) {
529 if (delete->spi_size != sizeof(u_int32_t)) {
544 memset(&spi, 0, sizeof(spi));
545 if (delete->spi_size == sizeof(spi.spi16[1])) {
547 sizeof(spi.spi16[1]));
548 } else if (delete->spi_size == sizeof(spi.spi32))
549 memcpy(&spi.spi32, delete + 1, sizeof(spi.spi32));
593 tlen = sizeof(*d) + sizeof(isakmp_index);
606 d->spi_size = sizeof(isakmp_index);
608 memcpy(d + 1, &iph1->index, sizeof(isakmp_index));
657 tlen = sizeof(*d) + pr->spisize;
677 spi += sizeof(pr->spi);
720 memcpy(&iph1->index.i_ck, &isakmp->i_ck, sizeof(cookie_t));
741 tlen = sizeof(*n) + spisiz;
799 spisiz = sizeof(isakmp_index);
803 tlen = sizeof(*n) + spisiz;
821 memcpy(n + 1, &iph1->index, sizeof(isakmp_index));
853 tlen = sizeof(*n) + pr->spisize;
946 tlen += sizeof(*gen);
962 tlen += sizeof(*isakmp) + payload->l;
974 memcpy(&isakmp->i_ck, &iph1->index.i_ck, sizeof(cookie_t));
975 memcpy(&isakmp->r_ck, &iph1->index.r_ck, sizeof(cookie_t));
980 memcpy(&isakmp->msgid, &iph2->msgid, sizeof(isakmp->msgid));
988 gen->len = htons(sizeof(*gen) + hash->l);
989 p += sizeof(*gen);
1067 tlen = sizeof(*n) + pr->spisize;
1163 if ((msg->sadb_msg_len << 3) < sizeof(*msg))
1366 if ((msg->sadb_msg_len << 3) < sizeof(*msg))
1535 tlen = sizeof(*ru_ack);
1549 ru_ack->spi_size = sizeof(isakmp_index);
1550 memcpy(ru_ack->i_ck, ru->i_ck, sizeof(cookie_t));
1551 memcpy(ru_ack->r_ck, ru->r_ck, sizeof(cookie_t));
1585 if (memcmp(ru->i_ck, iph1->index.i_ck, sizeof(cookie_t)) ||
1586 memcmp(ru->r_ck, iph1->index.r_ck, sizeof(cookie_t))) {
1645 tlen = sizeof(*ru);
1658 ru->spi_size = sizeof(isakmp_index);
1660 memcpy(ru->i_ck, iph1->index.i_ck, sizeof(cookie_t));
1661 memcpy(ru->r_ck, iph1->index.r_ck, sizeof(cookie_t));