summaryrefslogtreecommitdiffstats
path: root/staticd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-11-23 14:53:37 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-11-23 14:59:09 +0100
commitf1a15bd2a4a94879a04d7f87ffb89005cdaf2fc2 (patch)
treedce577b90e3db316c55eebf6dd7bd592db25a1cd /staticd
parentsharpd: replace `receive_notify` with request (diff)
downloadfrr-f1a15bd2a4a94879a04d7f87ffb89005cdaf2fc2.tar.xz
frr-f1a15bd2a4a94879a04d7f87ffb89005cdaf2fc2.zip
staticd: replace `receive_notify` with request
Send `ZEBRA_ROUTE_NOTIFY_REQUEST` rather than relying on the options field in zclient startup. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_zebra.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c
index 1489f53b5..68761c008 100644
--- a/staticd/static_zebra.c
+++ b/staticd/static_zebra.c
@@ -166,6 +166,7 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS)
static void zebra_connected(struct zclient *zclient)
{
+ zebra_route_notify_send(ZEBRA_ROUTE_NOTIFY_REQUEST, zclient, true);
zclient_send_reg_requests(zclient, VRF_DEFAULT);
static_fixup_vrf_ids(vrf_info_lookup(VRF_DEFAULT));
@@ -531,14 +532,12 @@ static zclient_handler *const static_handlers[] = {
void static_zebra_init(void)
{
- struct zclient_options opt = { .receive_notify = true };
-
hook_register_prio(if_real, 0, static_ifp_create);
hook_register_prio(if_up, 0, static_ifp_up);
hook_register_prio(if_down, 0, static_ifp_down);
hook_register_prio(if_unreal, 0, static_ifp_destroy);
- zclient = zclient_new(master, &opt, static_handlers,
+ zclient = zclient_new(master, &zclient_options_default, static_handlers,
array_size(static_handlers));
zclient_init(zclient, ZEBRA_ROUTE_STATIC, 0, &static_privs);