diff options
author | Karen Schoener <karen@volta.io> | 2020-03-06 16:33:40 +0100 |
---|---|---|
committer | Karen Schoener <karen@volta.io> | 2020-03-23 14:17:17 +0100 |
commit | 17da84a49dd665edf50d646d86e52cdf2c4c19b7 (patch) | |
tree | 011923776c9c4bf65c50e8296ce51de8434cf9cf /zebra/zserv.h | |
parent | Merge pull request #5916 from mjstapp/fix_gmtime (diff) | |
download | frr-17da84a49dd665edf50d646d86e52cdf2c4c19b7.tar.xz frr-17da84a49dd665edf50d646d86e52cdf2c4c19b7.zip |
zebra: Synchronous client queues accumulate messages from zebra.
Zebra is currently sending messages on interface add/delete/update,
VRF add/delete, and interface address change - regardless of whether
its clients had requested them. This is problematic for lde and isis,
which only listens to label chunk messages, and only when it is
waiting for one (synchronous client). The effect is the that messages
accumulate on the lde synchronous message queue.
With this change:
- Zebra does not send unsolicited messages to synchronous clients.
- Synchronous clients send a ZEBRA_HELLO to zebra.
The ZEBRA_HELLO contains a new boolean field: sychronous.
- LDP and PIM have been updated to send a ZEBRA_HELLO for their
synchronous clients.
Signed-off-by: Karen Schoener <karen@voltanet.io>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r-- | zebra/zserv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index 6a075cc9a..fa66cfb90 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -131,6 +131,9 @@ struct zserv { bool notify_owner; + /* Indicates if client is synchronous. */ + bool synchronous; + /* client's protocol */ uint8_t proto; uint16_t instance; |