Home | History | Annotate | Download | only in racoon

Lines Matching refs:frag

93 	vchar_t *frag;
128 if ((frag = vmalloc(fraglen)) == NULL) {
134 set_isakmp_header1(frag, iph1, ISAKMP_NPTYPE_FRAG);
135 hdr = (struct isakmp *)frag->v;
151 if (isakmp_send(iph1, frag) < 0) {
156 vfree(frag);
182 struct isakmp_frag *frag;
190 if (msg->l < sizeof(*isakmp) + sizeof(*frag)) {
196 frag = (struct isakmp_frag *)(isakmp + 1);
199 * frag->len is the frag payload data plus the frag payload header,
200 * whose size is sizeof(*frag)
202 if (msg->l < sizeof(*isakmp) + ntohs(frag->len) ||
203 ntohs(frag->len) < sizeof(*frag) + 1) {
208 if ((buf = vmalloc(ntohs(frag->len) - sizeof(*frag))) == NULL) {
219 data = (char *)(frag + 1);
222 item->frag_num = frag->index;
223 item->frag_last = (frag->flags & ISAKMP_FRAG_LAST);
227 /* Look for the last frag while inserting the new item in the chain */
245 /* If we saw the last frag, check if the chain is complete */