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()
2170 struct ipq *fp = NULL; in ip_reass()
2199 head = &ipq[hash]; in ip_reass()
2225 struct ipq *fq = TAILQ_LAST(head, ipqhead); in ip_reass()
2228 struct ipq *r = TAILQ_LAST(&ipq[i], ipqhead); in ip_reass()
2231 frag_freef(&ipq[i], r); in ip_reass()
2616 frag_freef(struct ipqhead *fhp, struct ipq *fp) in frag_freef()
2637 struct ipq *fp; in frag_timeout()
2649 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2650 struct ipq *fpp; in frag_timeout()
2656 frag_freef(&ipq[i], fpp); in frag_timeout()
2668 !TAILQ_EMPTY(&ipq[i])) { in frag_timeout()
2670 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2671 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_timeout()
2702 while (!TAILQ_EMPTY(&ipq[i])) { in frag_drain()
2704 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2705 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_drain()
2711 static struct ipq *
2715 struct ipq *fp; in ipq_alloc()
2729 fp = mtod(t, struct ipq *); in ipq_alloc()
2738 ipq_free(struct ipq *fp) in ipq_free()