Lines Matching defs:staletime
306 time_t staletime;
316 time_t staletime = ((struct peer_flush *)arg)->staletime;
325 if (staletime && p->lastchange > staletime)
460 * Flush all routes older then staletime. If staletime is 0 all routes will
464 peer_flush(struct rde_peer *peer, uint8_t aid, time_t staletime)
466 struct peer_flush pf = { peer, staletime };
473 /* every route is gone so reset staletime */
477 peer->staletime[i] = 0;
479 peer->staletime[aid] = 0;
485 * For the specified AID the Adj-RIB-Out is marked stale and the staletime
494 if (peer->staletime[aid])
495 peer_flush(peer, aid, peer->staletime[aid]);
497 peer->staletime[aid] = now = getmonotime();
625 if (peer->staletime[aid])
626 peer_flush(peer, aid, peer->staletime[aid]);
628 peer->staletime[aid] = now = getmonotime();