summaryrefslogtreecommitdiff
path: root/pimd/pim_routemap.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-08 23:19:55 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-10 18:43:21 -0400
commit097b5973d3ff7556c953329c962d0a8a813087ae (patch)
treeca90a8bc860ab02e0655ad2442fb32595769fee4 /pimd/pim_routemap.c
parentba1707ca54638376f73dd7b9e55a183250af573f (diff)
bgpd, lib, ospf6d, ospfd, pimd, zebra: Rework routemap event callback
The route_map_event_hook callback was passing the `route_map_event_t` to each individual interested party. No-one is ever using this data so let's cut to the chase a bit and remove the pass through of data. This is considered ok in that the routemap.c code came this way originally and after 15+ years no-one is using this functionality. Nor do I see any `easy` way to do anything useful with this data. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_routemap.c')
-rw-r--r--pimd/pim_routemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_routemap.c b/pimd/pim_routemap.c
index 4230c127ad..2de94e9031 100644
--- a/pimd/pim_routemap.c
+++ b/pimd/pim_routemap.c
@@ -36,7 +36,7 @@ static void pim_route_map_delete(const char *rmap_name)
route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_DELETED);
}
-static void pim_route_map_event(route_map_event_t event, const char *rmap_name)
+static void pim_route_map_event(const char *rmap_name)
{
route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_ADDED);
}