back to topotato report
topotato coverage report
Current view: top level - pimd - pim_routemap.c (source / functions) Hit Total Coverage
Test: aggregated run ( view descriptions ) Lines: 9 18 50.0 %
Date: 2023-02-24 19:38:44 Functions: 2 5 40.0 %

          Line data    Source code
       1             : /* PIM Route-map Code
       2             :  * Copyright (C) 2016 Cumulus Networks <sharpd@cumulusnetworks.com>
       3             :  * Copyright (C) 1999 Kunihiro Ishiguro <kunihiro@zebra.org>
       4             :  *
       5             :  * This file is part of Quagga
       6             :  *
       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
      10             :  * later version.
      11             :  *
      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.
      16             :  *
      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
      20             :  */
      21             : #include <zebra.h>
      22             : 
      23             : #include "if.h"
      24             : #include "vty.h"
      25             : #include "routemap.h"
      26             : 
      27             : #include "pimd.h"
      28             : 
      29           0 : static void pim_route_map_add(const char *rmap_name)
      30             : {
      31           0 :         route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_ADDED);
      32           0 : }
      33             : 
      34           0 : static void pim_route_map_delete(const char *rmap_name)
      35             : {
      36           0 :         route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_DELETED);
      37           0 : }
      38             : 
      39           0 : static void pim_route_map_event(const char *rmap_name)
      40             : {
      41           0 :         route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_ADDED);
      42           0 : }
      43             : 
      44          18 : void pim_route_map_init(void)
      45             : {
      46          18 :         route_map_init();
      47             : 
      48          18 :         route_map_add_hook(pim_route_map_add);
      49          18 :         route_map_delete_hook(pim_route_map_delete);
      50          18 :         route_map_event_hook(pim_route_map_event);
      51          18 : }
      52             : 
      53          18 : void pim_route_map_terminate(void)
      54             : {
      55          18 :         route_map_finish();
      56          18 : }

Generated by: LCOV version v1.16-topotato