Lines Matching refs:frag
93 vchar_t *frag; local
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; local
190 if (msg->l < sizeof(*isakmp) + sizeof(*frag)) {
196 frag = (struct isakmp_frag *)(isakmp + 1);
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);