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()
2166 struct ipq *fp = NULL; in ip_reass()
2195 head = &ipq[hash]; in ip_reass()
2221 struct ipq *fq = TAILQ_LAST(head, ipqhead); in ip_reass()
2224 struct ipq *r = TAILQ_LAST(&ipq[i], ipqhead); in ip_reass()
2227 frag_freef(&ipq[i], r); in ip_reass()
2612 frag_freef(struct ipqhead *fhp, struct ipq *fp) in frag_freef()
2633 struct ipq *fp; in frag_timeout()
2645 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2646 struct ipq *fpp; in frag_timeout()
2652 frag_freef(&ipq[i], fpp); in frag_timeout()
2664 !TAILQ_EMPTY(&ipq[i])) { in frag_timeout()
2666 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2667 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_timeout()
2698 while (!TAILQ_EMPTY(&ipq[i])) { in frag_drain()
2700 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2701 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_drain()
2707 static struct ipq *
2711 struct ipq *fp; in ipq_alloc()
2725 fp = mtod(t, struct ipq *); in ipq_alloc()
2734 ipq_free(struct ipq *fp) in ipq_free()