]>
git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_routemap.c
2 * Copyright (C) 2016 Cumulus Networks <sharpd@cumulusnetworks.com>
3 * Copyright (C) 1999 Kunihiro Ishiguro <kunihiro@zebra.org>
5 * This file is part of Quagga
7 * Quagga is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
12 * Quagga is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 static void pim_route_map_add(const char *rmap_name
)
31 route_map_notify_dependencies(rmap_name
, RMAP_EVENT_MATCH_ADDED
);
34 static void pim_route_map_delete(const char *rmap_name
)
36 route_map_notify_dependencies(rmap_name
, RMAP_EVENT_MATCH_DELETED
);
39 static void pim_route_map_event(const char *rmap_name
)
41 route_map_notify_dependencies(rmap_name
, RMAP_EVENT_MATCH_ADDED
);
44 void pim_route_map_init(void)
48 route_map_add_hook(pim_route_map_add
);
49 route_map_delete_hook(pim_route_map_delete
);
50 route_map_event_hook(pim_route_map_event
);
53 void pim_route_map_terminate(void)