MCPcopy Create free account
hub / github.com/F-Stack/f-stack / key_flush_acq

Function key_flush_acq

freebsd/netipsec/key.c:4673–4692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4671}
4672
4673static void
4674key_flush_acq(time_t now)
4675{
4676 struct secacq *acq, *nextacq;
4677
4678 /* ACQ tree */
4679 ACQ_LOCK();
4680 acq = LIST_FIRST(&V_acqtree);
4681 while (acq != NULL) {
4682 nextacq = LIST_NEXT(acq, chain);
4683 if (now - acq->created > V_key_blockacq_lifetime) {
4684 LIST_REMOVE(acq, chain);
4685 LIST_REMOVE(acq, addrhash);
4686 LIST_REMOVE(acq, seqhash);
4687 free(acq, M_IPSEC_SAQ);
4688 }
4689 acq = nextacq;
4690 }
4691 ACQ_UNLOCK();
4692}
4693
4694static void
4695key_flush_spacq(time_t now)

Callers 1

key_timehandlerFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected