summaryrefslogtreecommitdiffstats
path: root/pimd/pim_oil.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-10-13 14:34:48 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:11 +0100
commit040d86ade76e3791ea42d25a2b0261791e2f579b (patch)
treed02796eb163ab033e070eda158c17a38f2538b4e /pimd/pim_oil.h
parentpimd: Add hash lookups for upstream (diff)
downloadfrr-040d86ade76e3791ea42d25a2b0261791e2f579b.tar.xz
frr-040d86ade76e3791ea42d25a2b0261791e2f579b.zip
pimd: Create channel_oil hash for quicker lookup
When looking up the channel_oil use a hash to find it. Keep the list around for quick walks of the channel oils. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_oil.h')
-rw-r--r--pimd/pim_oil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pimd/pim_oil.h b/pimd/pim_oil.h
index 4b23b211a..0c99afb62 100644
--- a/pimd/pim_oil.h
+++ b/pimd/pim_oil.h
@@ -78,6 +78,11 @@ struct channel_oil {
struct channel_counts cc;
};
+extern struct list *pim_channel_oil_list;
+
+void pim_oil_init (void);
+void pim_oil_terminate (void);
+
void pim_channel_oil_free(struct channel_oil *c_oil);
struct channel_oil *pim_channel_oil_add(struct prefix_sg *sg,
int input_vif_index);