summaryrefslogtreecommitdiffstats
path: root/babeld/babel_interface.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-08 10:50:43 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-15 13:25:44 +0200
commitce19a04aea80f45ca1da80e28bf3a1253138c691 (patch)
treec77a0afabe9f9ac0e469c65b41da391032ceb8e8 /babeld/babel_interface.c
parentdoc: sample code-doc in .rst+sphinx (diff)
downloadfrr-ce19a04aea80f45ca1da80e28bf3a1253138c691.tar.xz
frr-ce19a04aea80f45ca1da80e28bf3a1253138c691.zip
lib: replace if_add_hook with hook_* logic
This allows modules to register their own additional hooks on interface creation/deletion. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'babeld/babel_interface.c')
-rw-r--r--babeld/babel_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c
index 1ae33b3a2..9fa32ee6f 100644
--- a/babeld/babel_interface.c
+++ b/babeld/babel_interface.c
@@ -1256,8 +1256,8 @@ void
babel_if_init ()
{
/* initialize interface list */
- if_add_hook (IF_NEW_HOOK, babel_if_new_hook);
- if_add_hook (IF_DELETE_HOOK, babel_if_delete_hook);
+ hook_register_prio(if_add, 0, babel_if_new_hook);
+ hook_register_prio(if_del, 0, babel_if_delete_hook);
babel_enable_if = vector_init (1);