From 551d44438275e9ebc9e7590814f413ac7d0cccd6 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 9 May 2000 11:29:52 +0000 Subject: Sorry, it didn't compile. :-( --- proto/ospf/neighbor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'proto/ospf/neighbor.c') diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 466c7ad..9f1c7fd 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -29,8 +29,10 @@ neigh_chstate(struct ospf_neighbor *n, u8 state) { ifa=n->ifa; n->state=state; - if(state==2WAY && oldstate<2WAY) ospf_int_sm(n->ifa, ISM_NEICH); - if(state<2WAY && oldstate>=2WAY) ospf_int_sm(n->ifa, ISM_NEICH); + if((state==NEIGHBOR_2WAY) && (oldstateifa, ISM_NEICH); + if((state=NEIGHBOR_2WAY)) + ospf_int_sm(n->ifa, ISM_NEICH); if(oldstate==NEIGHBOR_FULL) /* Decrease number of adjacencies */ { ifa->fadj--; -- cgit v1.2.3