Lines Matching refs:ipq
159 static struct ipq *ipq_alloc(int);
160 static void ipq_free(struct ipq *);
176 static TAILQ_HEAD(ipqhead, ipq) ipq[IPREASS_NHASH]; /* ip reassembly queues */
180 static u_int32_t ipq_limit; /* ipq allocation limit */
181 static u_int32_t ipq_count; /* current # of allocated ipq's */
340 static void frag_freef(struct ipqhead *, struct ipq *);
411 _CASSERT(sizeof (struct ipq) <= _MLEN);
473 TAILQ_INIT(&ipq[i]);
1403 struct ipq *fp = NULL;
1432 head = &ipq[hash];
1460 struct ipq *fq = TAILQ_LAST(head, ipqhead);
1463 struct ipq *r = TAILQ_LAST(&ipq[i], ipqhead);
1466 frag_freef(&ipq[i], r);
1884 frag_freef(struct ipqhead *fhp, struct ipq *fp)
1905 struct ipq *fp;
1917 for (fp = TAILQ_FIRST(&ipq[i]); fp; ) {
1918 struct ipq *fpp;
1924 frag_freef(&ipq[i], fpp);
1936 !TAILQ_EMPTY(&ipq[i])) {
1938 TAILQ_FIRST(&ipq[i])->ipq_nfrags;
1939 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]));
1970 while (!TAILQ_EMPTY(&ipq[i])) {
1972 TAILQ_FIRST(&ipq[i])->ipq_nfrags;
1973 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]));
1979 static struct ipq *
1983 struct ipq *fp;
1996 fp = mtod(t, struct ipq *);
2005 ipq_free(struct ipq *fp)