summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-09 14:18:41 +0200
committerOndrej Filip <feela@network.cz>2000-05-09 14:18:41 +0200
commit0e1b949be7f71d038e871dac159b424e76978bff (patch)
tree1c5a4edf061b15f7307a4687733eeba23085b089 /proto/ospf/neighbor.c
parent432996f40fceb58cd5ee5026eb4f7018ef6af1ef (diff)
downloadbird-0e1b949be7f71d038e871dac159b424e76978bff.tar
bird-0e1b949be7f71d038e871dac159b424e76978bff.zip
Bugfix in testing of possibility of adjacency.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 2762313..e177c98 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -182,7 +182,7 @@ can_do_adj(struct ospf_neighbor *n)
case OSPF_IS_PTP:
case OSPF_IS_BACKUP:
case OSPF_IS_DR:
- if(n->state==NEIGHBOR_2WAY) i=1;
+ if(n->state>=NEIGHBOR_2WAY) i=1;
break;
default:
die("%s: Iface %s in unknown state?",p->name, ifa->iface->name);