Lines Matching refs:ipq
150 static struct ipq *ipq_alloc(int);
151 static void ipq_free(struct ipq *);
168 static TAILQ_HEAD(ipqhead, ipq) ipq[IPREASS_NHASH]; /* ip reassembly queues */
391 static void frag_freef(struct ipqhead *, struct ipq *);
480 _CASSERT(sizeof(struct ipq) <= _MLEN); in ip_init()
529 TAILQ_INIT(&ipq[i]); in ip_init()
2164 struct ipq *fp = NULL; in ip_reass()
2193 head = &ipq[hash]; in ip_reass()
2219 struct ipq *fq = TAILQ_LAST(head, ipqhead); in ip_reass()
2222 struct ipq *r = TAILQ_LAST(&ipq[i], ipqhead); in ip_reass()
2225 frag_freef(&ipq[i], r); in ip_reass()
2610 frag_freef(struct ipqhead *fhp, struct ipq *fp) in frag_freef()
2631 struct ipq *fp; in frag_timeout()
2643 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2644 struct ipq *fpp; in frag_timeout()
2650 frag_freef(&ipq[i], fpp); in frag_timeout()
2662 !TAILQ_EMPTY(&ipq[i])) { in frag_timeout()
2664 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2665 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_timeout()
2696 while (!TAILQ_EMPTY(&ipq[i])) { in frag_drain()
2698 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2699 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_drain()
2705 static struct ipq *
2709 struct ipq *fp; in ipq_alloc()
2723 fp = mtod(t, struct ipq *); in ipq_alloc()
2732 ipq_free(struct ipq *fp) in ipq_free()