Lines Matching refs:hard

815 sadb_hardsoftchk(sadb_lifetime_t *hard, sadb_lifetime_t *soft,  in sadb_hardsoftchk()  argument
818 if (hard == NULL || soft == NULL) in sadb_hardsoftchk()
821 if (hard->sadb_lifetime_allocations != 0 && in sadb_hardsoftchk()
823 hard->sadb_lifetime_allocations < soft->sadb_lifetime_allocations) in sadb_hardsoftchk()
826 if (hard->sadb_lifetime_bytes != 0 && in sadb_hardsoftchk()
828 hard->sadb_lifetime_bytes < soft->sadb_lifetime_bytes) in sadb_hardsoftchk()
831 if (hard->sadb_lifetime_addtime != 0 && in sadb_hardsoftchk()
833 hard->sadb_lifetime_addtime < soft->sadb_lifetime_addtime) in sadb_hardsoftchk()
836 if (hard->sadb_lifetime_usetime != 0 && in sadb_hardsoftchk()
838 hard->sadb_lifetime_usetime < soft->sadb_lifetime_usetime) in sadb_hardsoftchk()
842 if (hard->sadb_lifetime_addtime != 0 && in sadb_hardsoftchk()
844 hard->sadb_lifetime_addtime < idle->sadb_lifetime_addtime) in sadb_hardsoftchk()
852 if (hard->sadb_lifetime_usetime != 0 && in sadb_hardsoftchk()
854 hard->sadb_lifetime_usetime < idle->sadb_lifetime_usetime) in sadb_hardsoftchk()
1096 boolean_t soft = B_FALSE, hard = B_FALSE; in sadb_sa2msg() local
1154 hard = B_TRUE; in sadb_sa2msg()
1280 if (hard) { in sadb_sa2msg()
2926 sadb_lifetime_t *hard = local
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;
4267 sadb_update_lifetimes(ipsa_t *assoc, sadb_lifetime_t *hard, argument
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 = local
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,