]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: clean up client routes when client goes away
authorJosh Bailey <joshb@google.com>
Thu, 22 Mar 2012 01:47:51 +0000 (18:47 -0700)
committerAvneesh Sachdev <avneesh@opensourcerouting.org>
Sun, 8 Apr 2012 07:28:50 +0000 (00:28 -0700)
commitaf56d404cd56d94ad3b2ec3f159650eb72baef0a
tree2d923b385dd21a5f0ced95d2430b4c998af18f94
parentfc328ac9d3d49b871c1139f36deb702a254c0d4f
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>
zebra/zebra_rib.c
zebra/zserv.c
zebra/zserv.h