diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-05-23 18:46:14 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-05-23 18:46:14 +0000 |
commit | 9a8aea93aa5a9eb2ac98b7af396b045a9f0a1781 (patch) | |
tree | dc1e439e7e89cb01e5549d9f85ee1ea243d63801 /usr.sbin/ldpd/lde.h | |
parent | e34db2586efee61276e7d8232594a765a324a0d2 (diff) |
Introduce a garbage collector for dead entries in the LIB.
If we lose a route and all of its associated labels, then there's no
point on keeping an entry for it in the LIB.
Diffstat (limited to 'usr.sbin/ldpd/lde.h')
-rw-r--r-- | usr.sbin/ldpd/lde.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/lde.h b/usr.sbin/ldpd/lde.h index 02dd3faef38..9097715ebf7 100644 --- a/usr.sbin/ldpd/lde.h +++ b/usr.sbin/ldpd/lde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: lde.h,v 1.33 2016/05/23 18:36:55 renato Exp $ */ +/* $OpenBSD: lde.h,v 1.34 2016/05/23 18:46:13 renato Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -160,6 +160,12 @@ void lde_check_release_wcard(struct map *, struct lde_nbr *); void lde_check_withdraw(struct map *, struct lde_nbr *); void lde_check_withdraw_wcard(struct map *, struct lde_nbr *); void lde_label_list_free(struct lde_nbr *); +void lde_gc_timer(int, short, void *); +void lde_gc_start_timer(void); +void lde_gc_stop_timer(void); + +#define LDE_GC_INTERVAL 300 +extern struct event gc_timer; /* l2vpn.c */ struct l2vpn *l2vpn_new(const char *); |