diff options
author | Josh Bailey <joshb@google.com> | 2012-03-22 02:47:51 +0100 |
---|---|---|
committer | Avneesh Sachdev <avneesh@opensourcerouting.org> | 2012-04-08 09:28:50 +0200 |
commit | af56d404cd56d94ad3b2ec3f159650eb72baef0a (patch) | |
tree | 2d923b385dd21a5f0ced95d2430b4c998af18f94 /zebra/zserv.h | |
parent | zebra: add more logs/asserts to rib work queue code (diff) | |
download | frr-af56d404cd56d94ad3b2ec3f159650eb72baef0a.tar.xz frr-af56d404cd56d94ad3b2ec3f159650eb72baef0a.zip |
zebra: clean up client routes when client goes away
* zebra/zebra_rib.c: Add code to clean up routes added by a client
(as identfied by 'rib type').
* zebra/zserv.[ch]: Maintain the type of the routes added by a
client on the 'zserv' structure -- assume that a given client uses
a single route type for now.
Clean up routes from a client when the client goes away (in
zebra_client_close()).
From: Josh Bailey <joshb@google.com>
Signed-off-by: Avneesh Sachdev <avneesh@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@diac24.net>
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 a73718304..e37041f82 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -38,6 +38,10 @@ struct zserv /* Client file descriptor. */ int sock; + /* Client route type. */ + /* Assuming each client contains only one type of route. */ + int route_type; + /* Input/output buffer to the client. */ struct stream *ibuf; struct stream *obuf; |