diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2020-03-26 17:32:37 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-26 17:32:37 -0300 |
| commit | 4e9d40b8a1a1fc97ef395eb8639360d1ee571d94 (patch) | |
| tree | fdf22b353348afd1052ba39bb150c4cbb5bb08a8 /lib/zclient.h | |
| parent | b37bbdbc8107abeb988939ab79b3d4f68adf9981 (diff) | |
| parent | 17da84a49dd665edf50d646d86e52cdf2c4c19b7 (diff) | |
Merge pull request #5925 from volta-networks/synchronous_client
zebra: synchronous client queues accumulate messages from zebra
Diffstat (limited to 'lib/zclient.h')
| -rw-r--r-- | lib/zclient.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index f18511dc81..4de42a35bb 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -255,6 +255,9 @@ struct zclient { /* Do we care about failure events for route install? */ bool receive_notify; + /* Is this a synchronous client? */ + bool synchronous; + /* Socket to zebra daemon. */ int sock; @@ -569,6 +572,7 @@ enum zebra_neigh_state { ZEBRA_NEIGH_INACTIVE = 0, ZEBRA_NEIGH_ACTIVE = 1 }; struct zclient_options { bool receive_notify; + bool synchronous; }; extern struct zclient_options zclient_options_default; @@ -796,4 +800,9 @@ extern void zclient_send_mlag_deregister(struct zclient *client); extern void zclient_send_mlag_data(struct zclient *client, struct stream *client_s); +/* Send the hello message. + * Returns 0 for success or -1 on an I/O error. + */ +extern int zclient_send_hello(struct zclient *client); + #endif /* _ZEBRA_ZCLIENT_H */ |
