From 8e48831a970a784a979446813191628790d477f1 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 17 Mar 2011 15:53:36 +0100 Subject: Vastly improved OSPF reconfiguration. Now it can handle a change in iface pattern structure. It can add, remove and reconfigure interfaces, vlinks and areas. --- proto/ospf/neighbor.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'proto/ospf/neighbor.c') diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 98c9de5..642365b 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -349,7 +349,7 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event) case NEIGHBOR_DOWN: neigh_chstate(n, NEIGHBOR_INIT); default: - tm_start(n->inactim, n->ifa->dead); /* Restart inactivity timer */ + tm_start(n->inactim, n->ifa->deadint); /* Restart inactivity timer */ break; } break; @@ -548,16 +548,6 @@ find_neigh_by_ip(struct ospf_iface *ifa, ip_addr ip) return NULL; } -struct ospf_area * -ospf_find_area(struct proto_ospf *po, u32 aid) -{ - struct ospf_area *oa; - WALK_LIST(oa, po->area_list) - if (((struct ospf_area *) oa)->areaid == aid) - return oa; - return NULL; -} - /* Neighbor is inactive for a long time. Remove it. */ static void neighbor_timer_hook(timer * timer) -- cgit v1.2.3