Lines Matching refs:hard

810  * Check hard vs. soft lifetimes.  If there's a reality mismatch (e.g.
811 * soft lifetimes > hard lifetimes) return an appropriate diagnostic for
815 sadb_hardsoftchk(sadb_lifetime_t *hard, sadb_lifetime_t *soft,
818 if (hard == NULL || soft == NULL)
821 if (hard->sadb_lifetime_allocations != 0 &&
823 hard->sadb_lifetime_allocations < soft->sadb_lifetime_allocations)
826 if (hard->sadb_lifetime_bytes != 0 &&
828 hard->sadb_lifetime_bytes < soft->sadb_lifetime_bytes)
831 if (hard->sadb_lifetime_addtime != 0 &&
833 hard->sadb_lifetime_addtime < soft->sadb_lifetime_addtime)
836 if (hard->sadb_lifetime_usetime != 0 &&
838 hard->sadb_lifetime_usetime < soft->sadb_lifetime_usetime)
842 if (hard->sadb_lifetime_addtime != 0 &&
844 hard->sadb_lifetime_addtime < idle->sadb_lifetime_addtime)
852 if (hard->sadb_lifetime_usetime != 0 &&
854 hard->sadb_lifetime_usetime < idle->sadb_lifetime_usetime)
1096 boolean_t soft = B_FALSE, hard = B_FALSE;
1154 hard = B_TRUE;
1280 if (hard) {
2926 sadb_lifetime_t *hard =
2998 * unspecific and linked is too hard.
3152 if (hard != NULL) {
3153 newbie->ipsa_hardaddlt = hard->sadb_lifetime_addtime;
3154 newbie->ipsa_harduselt = hard->sadb_lifetime_usetime;
3155 newbie->ipsa_hardbyteslt = hard->sadb_lifetime_bytes;
3156 newbie->ipsa_hardalloc = hard->sadb_lifetime_allocations;
4017 * Check hard first.
4030 * Send SADB_EXPIRE with hard lifetime, delay for unlinking.
4267 sadb_update_lifetimes(ipsa_t *assoc, sadb_lifetime_t *hard,
4278 if (hard != NULL) {
4279 if (hard->sadb_lifetime_bytes != 0)
4280 assoc->ipsa_hardbyteslt = hard->sadb_lifetime_bytes;
4281 if (hard->sadb_lifetime_usetime != 0)
4282 assoc->ipsa_harduselt = hard->sadb_lifetime_usetime;
4283 if (hard->sadb_lifetime_addtime != 0)
4284 assoc->ipsa_hardaddlt = hard->sadb_lifetime_addtime;
4293 if (hard->sadb_lifetime_allocations != 0)
4294 assoc->ipsa_hardalloc = hard->sadb_lifetime_allocations;
4491 sadb_lifetime_t *hard =
4608 if ((*diagnostic = sadb_hardsoftchk(hard, soft, idle)) != 0) {
4641 sadb_update_lifetimes(ipsapp.ipsap_sa_ptr, hard, soft,
4677 sadb_update_lifetimes(ipsapp.ipsap_psa_ptr, hard, soft,
6216 * hard-expire lifetime (time_t)1, ensuring deletion by the *_ager().