Lines Matching refs:acq

4399 	struct secacq *acq, *nextacq;  in key_flush_acq()  local
4403 for (acq = LIST_FIRST(&V_acqtree); acq != NULL; acq = nextacq) { in key_flush_acq()
4404 nextacq = LIST_NEXT(acq, chain); in key_flush_acq()
4405 if (now - acq->created > V_key_blockacq_lifetime in key_flush_acq()
4406 && __LIST_CHAINED(acq)) { in key_flush_acq()
4407 LIST_REMOVE(acq, chain); in key_flush_acq()
4408 free(acq, M_IPSEC_SAQ); in key_flush_acq()
4417 struct secspacq *acq, *nextacq; in key_flush_spacq() local
4421 for (acq = LIST_FIRST(&V_spacqtree); acq != NULL; acq = nextacq) { in key_flush_spacq()
4422 nextacq = LIST_NEXT(acq, chain); in key_flush_spacq()
4423 if (now - acq->created > V_key_blockacq_lifetime in key_flush_spacq()
4424 && __LIST_CHAINED(acq)) { in key_flush_spacq()
4425 LIST_REMOVE(acq, chain); in key_flush_spacq()
4426 free(acq, M_IPSEC_SAQ); in key_flush_spacq()
4709 struct secacq *acq; in key_getspi() local
4710 if ((acq = key_getacqbyseq(mhp->msg->sadb_msg_seq)) != NULL) { in key_getspi()
4712 acq->created = time_second; in key_getspi()
4713 acq->count = 0; in key_getspi()
6348 struct secacq *acq; in key_getacq() local
6351 LIST_FOREACH(acq, &V_acqtree, chain) { in key_getacq()
6352 if (key_cmpsaidx(saidx, &acq->saidx, CMP_EXACTLY)) in key_getacq()
6357 return acq; in key_getacq()
6363 struct secacq *acq; in key_getacqbyseq() local
6366 LIST_FOREACH(acq, &V_acqtree, chain) { in key_getacqbyseq()
6367 if (acq->seq == seq) in key_getacqbyseq()
6372 return acq; in key_getacqbyseq()
6378 struct secspacq *acq; in key_newspacq() local
6381 acq = malloc(sizeof(struct secspacq), M_IPSEC_SAQ, M_NOWAIT|M_ZERO); in key_newspacq()
6382 if (acq == NULL) { in key_newspacq()
6388 bcopy(spidx, &acq->spidx, sizeof(acq->spidx)); in key_newspacq()
6389 acq->created = time_second; in key_newspacq()
6390 acq->count = 0; in key_newspacq()
6394 LIST_INSERT_HEAD(&V_spacqtree, acq, chain); in key_newspacq()
6397 return acq; in key_newspacq()
6403 struct secspacq *acq; in key_getspacq() local
6406 LIST_FOREACH(acq, &V_spacqtree, chain) { in key_getspacq()
6407 if (key_cmpspidx_exactly(spidx, &acq->spidx)) { in key_getspacq()
6409 return acq; in key_getspacq()
6452 struct secacq *acq; in key_acquire2() local
6462 if ((acq = key_getacqbyseq(mhp->msg->sadb_msg_seq)) == NULL) { in key_acquire2()
6472 acq->created = time_second; in key_acquire2()
6473 acq->count = 0; in key_acquire2()
7644 struct secacq *acq, *nextacq; in key_destroy() local
7686 for (acq = LIST_FIRST(&V_acqtree); acq != NULL; acq = nextacq) { in key_destroy()
7687 nextacq = LIST_NEXT(acq, chain); in key_destroy()
7688 if (__LIST_CHAINED(acq)) { in key_destroy()
7689 LIST_REMOVE(acq, chain); in key_destroy()
7690 free(acq, M_IPSEC_SAQ); in key_destroy()