summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-21 13:47:17 +0200
committerGitHub <noreply@github.com>2017-08-21 13:47:17 +0200
commit63b02a77ca13359e136281af9d9edd3b7493b42d (patch)
tree67062f7b98d41b2f6e916141866e6c907126b50e /ospfd
parentMerge pull request #1013 from donaldsharp/versions (diff)
parentredhat: ship IRDP module (diff)
downloadfrr-63b02a77ca13359e136281af9d9edd3b7493b42d.tar.xz
frr-63b02a77ca13359e136281af9d9edd3b7493b42d.zip
Merge pull request #929 from opensourcerouting/hooks-doc-irdp
hook improvements, more hooks, doc example, IRDP cleanup
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index 4ea8ec26f..54639afd6 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -1163,6 +1163,6 @@ void ospf_if_init()
{
/* Initialize Zebra interface data structure. */
om->iflist = vrf_iflist(VRF_DEFAULT);
- if_add_hook(IF_NEW_HOOK, ospf_if_new_hook);
- if_add_hook(IF_DELETE_HOOK, ospf_if_delete_hook);
+ hook_register_prio(if_add, 0, ospf_if_new_hook);
+ hook_register_prio(if_del, 0, ospf_if_delete_hook);
}