diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-11-23 15:03:35 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-11-23 15:05:10 +0100 |
| commit | 25a1dccc56a7e544a855bfeda5751c91b53a03fb (patch) | |
| tree | 87a8f23a34dffd2f8e1543cf2955a763bbf3c9b8 /lib/zclient.c | |
| parent | 7f7564bbb24aa28dd59a3983bb21f730162312cb (diff) | |
lib: remove `.receive_notify` zclient option
This should just be set with `ZEBRA_ROUTE_NOTIFY_REQUEST` instead.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 9f261e2f29..47ce111b33 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -41,8 +41,9 @@ static void zclient_event(enum zclient_event, struct zclient *); static void zebra_interface_if_set_value(struct stream *s, struct interface *ifp); -struct zclient_options zclient_options_default = {.receive_notify = false, - .synchronous = false}; +struct zclient_options zclient_options_default = { + .synchronous = false, +}; struct sockaddr_storage zclient_addr; socklen_t zclient_addr_len; @@ -69,7 +70,6 @@ struct zclient *zclient_new(struct event_loop *master, zclient->handlers = handlers; zclient->n_handlers = n_handlers; - zclient->receive_notify = opt->receive_notify; zclient->synchronous = opt->synchronous; return zclient; @@ -392,10 +392,7 @@ enum zclient_send_status zclient_send_hello(struct zclient *zclient) stream_putc(s, zclient->redist_default); stream_putw(s, zclient->instance); stream_putl(s, zclient->session_id); - if (zclient->receive_notify) - stream_putc(s, 1); - else - stream_putc(s, 0); + stream_putc(s, 0); /* receive_notify - removed */ if (zclient->synchronous) stream_putc(s, 1); else |
