Lines Matching refs:soft

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)
822 soft->sadb_lifetime_allocations != 0 &&
823 hard->sadb_lifetime_allocations < soft->sadb_lifetime_allocations)
827 soft->sadb_lifetime_bytes != 0 &&
828 hard->sadb_lifetime_bytes < soft->sadb_lifetime_bytes)
832 soft->sadb_lifetime_addtime != 0 &&
833 hard->sadb_lifetime_addtime < soft->sadb_lifetime_addtime)
837 soft->sadb_lifetime_usetime != 0 &&
838 hard->sadb_lifetime_usetime < soft->sadb_lifetime_usetime)
847 if (soft->sadb_lifetime_addtime != 0 &&
849 soft->sadb_lifetime_addtime < idle->sadb_lifetime_addtime)
857 if (soft->sadb_lifetime_usetime != 0 &&
859 soft->sadb_lifetime_usetime < idle->sadb_lifetime_usetime)
1096 boolean_t soft = B_FALSE, hard = B_FALSE;
1148 soft = B_TRUE;
1290 if (soft) {
1496 * | base | SA | source addr | dest addr | rsrvd. or key | soft lifetime |
1502 * | base | SA | source addr | dest addr | soft lifetime |
2653 * A security association which has a soft reference to another security
2924 sadb_lifetime_t *soft =
2996 * the SA is paired, it's soft linked to another SA for the other
3145 if (soft != NULL) {
3146 newbie->ipsa_softaddlt = soft->sadb_lifetime_addtime;
3147 newbie->ipsa_softuselt = soft->sadb_lifetime_usetime;
3148 newbie->ipsa_softbyteslt = soft->sadb_lifetime_bytes;
3149 newbie->ipsa_softalloc = soft->sadb_lifetime_allocations;
4064 * be able to soft expire at different times.
4268 sadb_lifetime_t *soft, sadb_lifetime_t *idle, boolean_t outbound)
4297 if (soft != NULL) {
4298 if (soft->sadb_lifetime_bytes != 0) {
4299 if (soft->sadb_lifetime_bytes >
4305 soft->sadb_lifetime_bytes;
4308 if (soft->sadb_lifetime_usetime != 0) {
4309 if (soft->sadb_lifetime_usetime >
4315 soft->sadb_lifetime_usetime;
4318 if (soft->sadb_lifetime_addtime != 0) {
4319 if (soft->sadb_lifetime_addtime >
4325 soft->sadb_lifetime_addtime;
4341 if (soft->sadb_lifetime_allocations != 0)
4342 assoc->ipsa_softalloc = soft->sadb_lifetime_allocations;
4489 sadb_lifetime_t *soft =
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,