Home | History | Annotate | Download | only in dist

Lines Matching defs:existing

351 	struct penalty *penalty = NULL, *existing = NULL;
425 if ((existing = RB_INSERT(penalties_by_addr, by_addr,
442 existing->active ? "active" : "inactive", t,
443 addrnetmask, (long long)(existing->expiry - now));
445 if (RB_REMOVE(penalties_by_expiry, by_expiry, existing) != existing)
448 existing->expiry += penalty_secs;
449 if (existing->expiry - now > penalty_cfg.penalty_max)
450 existing->expiry = now + penalty_cfg.penalty_max;
451 if (existing->expiry - now > penalty_cfg.penalty_min &&
452 !existing->active) {
454 addrnetmask, t, (long long)(existing->expiry - now),
456 existing->active = 1;
458 existing->reason = penalty->reason;
462 if (RB_INSERT(penalties_by_expiry, by_expiry, existing) != NULL)