Lines Matching defs:lft_h
3251 if (sav->lft_h != NULL) {
3252 free(sav->lft_h, M_IPSEC_MISC);
3253 sav->lft_h = NULL;
3368 struct seclifetime *lft_h, *lft_s, *tmp;
3378 lft_h = lft_s = NULL;
3399 lft_h = key_dup_lifemsg((const struct sadb_lifetime *)
3401 if (lft_h == NULL) {
3410 free(lft_h, M_IPSEC_MISC);
3421 tmp = sav->lft_h;
3422 sav->lft_h = lft_h;
3423 lft_h = tmp;
3429 if (lft_h != NULL)
3430 free(lft_h, M_IPSEC_MISC);
3436 IPSEC_ASSERT(sav->lft_h == NULL, ("lft_h is already initialized\n"));
3438 sav->lft_h = lft_h;
3822 if (!sav->lft_h)
3824 m = key_setlifetime(sav->lft_h,
4727 if (sav->lft_h == NULL)
4734 if (sav->lft_h == NULL) {
4746 if ((sav->lft_h->addtime != 0 &&
4747 now - sav->created > sav->lft_h->addtime) ||
4748 (sav->lft_h->usetime != 0 && sav->firstused &&
4749 now - sav->firstused > sav->lft_h->usetime) ||
4750 (sav->lft_h->bytes != 0 && counter_u64_fetch(
4751 sav->lft_c_bytes) > sav->lft_h->bytes)) {
7667 lt->sadb_lifetime_allocations = sav->lft_h->allocations;
7668 lt->sadb_lifetime_bytes = sav->lft_h->bytes;
7669 lt->sadb_lifetime_addtime = sav->lft_h->addtime;
7670 lt->sadb_lifetime_usetime = sav->lft_h->usetime;