summaryrefslogtreecommitdiffstats
path: root/eigrpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-11-02 21:49:28 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-11-03 01:10:43 +0100
commitd889055d8e8d87cac0f4a7086e5b453bbe2d0f79 (patch)
tree0fb96873f9b22943218f7c7d876839470370ca5f /eigrpd
parentMerge pull request #14546 from adrianomarto/ospf6-point-to-multipoint (diff)
downloadfrr-d889055d8e8d87cac0f4a7086e5b453bbe2d0f79.tar.xz
frr-d889055d8e8d87cac0f4a7086e5b453bbe2d0f79.zip
lib: convert if_zapi_callbacks into actual hooks
...so that multiple functions can be subscribed. The create/destroy hooks are renamed to real/unreal because that's what they *actually* signal. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'eigrpd')
-rw-r--r--eigrpd/eigrp_interface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eigrpd/eigrp_interface.c b/eigrpd/eigrp_interface.c
index 7bb1617c1..fb8f47e72 100644
--- a/eigrpd/eigrp_interface.c
+++ b/eigrpd/eigrp_interface.c
@@ -202,8 +202,10 @@ struct list *eigrp_iflist;
void eigrp_if_init(void)
{
- if_zapi_callbacks(eigrp_ifp_create, eigrp_ifp_up,
- eigrp_ifp_down, eigrp_ifp_destroy);
+ hook_register_prio(if_real, 0, eigrp_ifp_create);
+ hook_register_prio(if_up, 0, eigrp_ifp_up);
+ hook_register_prio(if_down, 0, eigrp_ifp_down);
+ hook_register_prio(if_unreal, 0, eigrp_ifp_destroy);
/* Initialize Zebra interface data structure. */
// hook_register_prio(if_add, 0, eigrp_if_new);
hook_register_prio(if_del, 0, eigrp_if_delete_hook);