Lines Matching refs:item
183 struct isakmp_frag_item *item; local
213 if ((item = racoon_malloc(sizeof(*item))) == NULL) {
222 item->frag_num = frag->index;
223 item->frag_last = (frag->flags & ISAKMP_FRAG_LAST);
224 item->frag_next = NULL;
225 item->frag_packet = buf;
228 if (item->frag_last)
229 last_frag = item->frag_num;
232 iph1->frag_chain = item;
239 last_frag = item->frag_num;
242 current->frag_next = item;
248 item = iph1->frag_chain;
250 if (item->frag_num == i)
252 item = item->frag_next;
253 } while (item != NULL);
255 if (item == NULL) /* Not found */
259 if (item != NULL) /* It is complete */
270 struct isakmp_frag_item *item; local
277 if ((item = iph1->frag_chain) == NULL) {
284 len += item->frag_packet->l;
285 item = item->frag_next;
286 } while (item != NULL);
295 item = iph1->frag_chain;
297 if (item->frag_num == i)
299 item = item->frag_next;
300 } while (item != NULL);
302 if (item == NULL) {
309 memcpy(data, item->frag_packet->v, item->frag_packet->l);
310 data += item->frag_packet->l;
314 item = iph1->frag_chain;
318 next_item = item->frag_next;
320 vfree(item->frag_packet);
321 racoon_free(item);
323 item = next_item;
324 } while (item != NULL);