From cfe34a316e35a209fcd814ccf3523c262e8d4b0a Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Mon, 5 Jul 2010 17:50:19 +0200 Subject: Implements hostcache and recursive next hops. Hostcache is a structure for monitoring changes in a routing table that is used for routes with dynamic/recursive next hops. This is needed for proper iBGP next hop handling. --- nest/proto.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'nest/proto.c') diff --git a/nest/proto.c b/nest/proto.c index c9e2f5c..16ec3f9 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -577,10 +577,8 @@ proto_fell_down(struct proto *p) bzero(&p->stats, sizeof(struct proto_stats)); rt_unlock_table(p->table); -#ifdef CONFIG_PIPE - if (proto_is_pipe(p)) - rt_unlock_table(pipe_get_peer_table(p)); -#endif + if (p->proto->cleanup) + p->proto->cleanup(p); proto_rethink_goal(p); } -- cgit v1.2.3