summaryrefslogtreecommitdiffstats
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-10 02:06:13 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-24 01:35:42 +0200
commitd4644d4196a74ef406a21b6fa6eb4a64b045bde3 (patch)
tree782a421ecb9774837848ab47497c20c94bfa797d /zebra/rib.h
parentMerge pull request #4385 from manuhalo/fix_deprecate_retain (diff)
downloadfrr-d4644d4196a74ef406a21b6fa6eb4a64b045bde3.tar.xz
frr-d4644d4196a74ef406a21b6fa6eb4a64b045bde3.zip
zebra: Add kernel level graceful restart
<Initial Code from Praveen Chaudhary> Add the a `--graceful_restart X` flag to zebra start that now creates a timer that pops in X seconds and will go through and remove all routes that are older than startup. If graceful_restart is not specified then we will just pop a timer that cleans everything up immediately. Signed-off-by: Praveen Chaudhary <pchaudhary@linkedin.com> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index ca0801c20..0353c9bb9 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -400,7 +400,7 @@ extern struct route_entry *rib_lookup_ipv4(struct prefix_ipv4 *p,
extern void rib_update(vrf_id_t vrf_id, rib_update_event_t event);
extern void rib_update_table(struct route_table *table,
rib_update_event_t event);
-extern void rib_sweep_route(void);
+extern int rib_sweep_route(struct thread *t);
extern void rib_sweep_table(struct route_table *table);
extern void rib_close_table(struct route_table *table);
extern void rib_init(void);