summaryrefslogtreecommitdiff
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-09 11:29:52 +0000
committerOndrej Filip <feela@network.cz>2000-05-09 11:29:52 +0000
commit551d44438275e9ebc9e7590814f413ac7d0cccd6 (patch)
tree1d4875432296101370f7e80643415487993e9202 /proto/ospf/neighbor.c
parentb29c620f90d429b868038984a5427470f00aebac (diff)
Sorry, it didn't compile. :-(
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 466c7ad5..9f1c7fd8 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) && (oldstate<NEIGHBOR_2WAY))
+ ospf_int_sm(n->ifa, ISM_NEICH);
+ if((state<NEIGHBOR_2WAY) && (oldstate>=NEIGHBOR_2WAY))
+ ospf_int_sm(n->ifa, ISM_NEICH);
if(oldstate==NEIGHBOR_FULL) /* Decrease number of adjacencies */
{
ifa->fadj--;