diff options
author | Santosh P K <sapk@vmware.com> | 2020-02-20 19:50:14 +0100 |
---|---|---|
committer | Santosh P K <sapk@vmware.com> | 2020-02-21 15:26:48 +0100 |
commit | 6f4aee61a2e741b8ba6f91b5922ddafafda5b587 (patch) | |
tree | 464cda7f3595a74a51d91d8f38de47ea737caf29 /zebra/zserv.h | |
parent | Merge pull request #5842 from qlyoung/fix-test-then-xfree-again (diff) | |
download | frr-6f4aee61a2e741b8ba6f91b5922ddafafda5b587.tar.xz frr-6f4aee61a2e741b8ba6f91b5922ddafafda5b587.zip |
Zebra: Zebra gr dynamic client handling.
When a client connects to zebra with GR capabilities and
then restarts, it might disconnect again even before hello is
sent leading zebra cores.
GR should be supported only for dynamic neighbor who are capable
of restarting.
Signed-off-by: Santosh P K <sapk@vmware.com>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r-- | zebra/zserv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index 77ea19202..6a075cc9a 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -229,6 +229,10 @@ struct zserv { DECLARE_HOOK(zserv_client_connect, (struct zserv *client), (client)); DECLARE_KOOH(zserv_client_close, (struct zserv *client), (client)); +#define DYNAMIC_CLIENT_GR_DISABLED(_client) \ + ((_client->proto <= ZEBRA_ROUTE_CONNECT) \ + || !(_client->gr_instance_count)) + /* * Initialize Zebra API server. * |