summaryrefslogtreecommitdiffstats
path: root/pimd/pimd.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pimd.c')
-rw-r--r--pimd/pimd.c51
1 files changed, 22 insertions, 29 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c
index fc6663776..51a0833cd 100644
--- a/pimd/pimd.c
+++ b/pimd/pimd.c
@@ -1,22 +1,21 @@
/*
- PIM for Quagga
- Copyright (C) 2008 Everton da Silva Marques
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; see the file COPYING; if not, write to the
- Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
- MA 02110-1301 USA
-*/
+ * PIM for Quagga
+ * Copyright (C) 2008 Everton da Silva Marques
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
#include <zebra.h>
@@ -28,6 +27,7 @@
#include "plist.h"
#include "hash.h"
#include "jhash.h"
+#include "vrf.h"
#include "pimd.h"
#include "pim_cmd.h"
@@ -141,22 +141,15 @@ pim_vrf_disable (struct vrf *vrf)
void
pim_vrf_init (void)
{
- vrf_add_hook (VRF_NEW_HOOK, pim_vrf_new);
- vrf_add_hook (VRF_ENABLE_HOOK, pim_vrf_enable);
- vrf_add_hook (VRF_DISABLE_HOOK, pim_vrf_disable);
- vrf_add_hook (VRF_DELETE_HOOK, pim_vrf_delete);
-
- vrf_init ();
+ vrf_init (pim_vrf_new,
+ pim_vrf_enable,
+ pim_vrf_disable,
+ pim_vrf_delete);
}
static void
pim_vrf_terminate (void)
{
- vrf_add_hook (VRF_NEW_HOOK, NULL);
- vrf_add_hook (VRF_ENABLE_HOOK, NULL);
- vrf_add_hook (VRF_DISABLE_HOOK, NULL);
- vrf_add_hook (VRF_DELETE_HOOK, NULL);
-
vrf_terminate ();
}