summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2016-04-19 22:06:35 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-30 18:56:17 +0200
commitc634f609a6090e2e28d99725c16aa2c5c3bab11f (patch)
tree2e6055e363ab1afe668d2e09eada08b2d4fcaf81 /lib
parentbgpd: eliminate RD related duplicate code in bgp_encap.c (diff)
downloadfrr-c634f609a6090e2e28d99725c16aa2c5c3bab11f.tar.xz
frr-c634f609a6090e2e28d99725c16aa2c5c3bab11f.zip
lib: add route_table_get_default_delegate
Diffstat (limited to 'lib')
-rw-r--r--lib/table.c6
-rw-r--r--lib/table.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/table.c b/lib/table.c
index 8858aea0f..d0e084ead 100644
--- a/lib/table.c
+++ b/lib/table.c
@@ -523,6 +523,12 @@ static route_table_delegate_t default_delegate = {
.destroy_node = route_node_destroy
};
+route_table_delegate_t *
+route_table_get_default_delegate(void)
+{
+ return &default_delegate;
+}
+
/*
* route_table_init
*/
diff --git a/lib/table.h b/lib/table.h
index 34c196aa4..e6cdcfef1 100644
--- a/lib/table.h
+++ b/lib/table.h
@@ -144,6 +144,9 @@ extern struct route_table *route_table_init (void);
extern struct route_table *
route_table_init_with_delegate (route_table_delegate_t *);
+extern route_table_delegate_t *
+route_table_get_default_delegate(void);
+
extern void route_table_finish (struct route_table *);
extern void route_unlock_node (struct route_node *node);
extern struct route_node *route_top (struct route_table *);