diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-11-25 09:15:07 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 09:15:07 -0500 |
| commit | 0dc7704fd50a035c85dea58408abea80c4816f15 (patch) | |
| tree | 213419de02df4c18b899c5daebc249a5f243fd3a /sharpd/sharp_zebra.c | |
| parent | ca8fb16192537973033913a57f583adcffb13cce (diff) | |
| parent | 5a40f2b0e75bbb43c0d6e2f9cfe190dfaa61f386 (diff) | |
Merge pull request #14867 from opensourcerouting/zclient-options-cleanup
*: clean up `zclient` options
Diffstat (limited to 'sharpd/sharp_zebra.c')
| -rw-r--r-- | sharpd/sharp_zebra.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 40921ecdd3..aa720bacf2 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -512,6 +512,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); /* @@ -1067,14 +1068,12 @@ static zclient_handler *const sharp_handlers[] = { void sharp_zebra_init(void) { - struct zclient_options opt = {.receive_notify = true}; - hook_register_prio(if_real, 0, sharp_ifp_create); hook_register_prio(if_up, 0, sharp_ifp_up); hook_register_prio(if_down, 0, sharp_ifp_down); hook_register_prio(if_unreal, 0, sharp_ifp_destroy); - zclient = zclient_new(master, &opt, sharp_handlers, + zclient = zclient_new(master, &zclient_options_default, sharp_handlers, array_size(sharp_handlers)); zclient_init(zclient, ZEBRA_ROUTE_SHARP, 0, &sharp_privs); |
