Bugfix in testing of possibility of adjacency.

This commit is contained in:
Ondrej Filip 2000-05-09 12:18:41 +00:00
parent 432996f40f
commit 0e1b949be7

View file

@ -182,7 +182,7 @@ can_do_adj(struct ospf_neighbor *n)
case OSPF_IS_PTP: case OSPF_IS_PTP:
case OSPF_IS_BACKUP: case OSPF_IS_BACKUP:
case OSPF_IS_DR: case OSPF_IS_DR:
if(n->state==NEIGHBOR_2WAY) i=1; if(n->state>=NEIGHBOR_2WAY) i=1;
break; break;
default: default:
die("%s: Iface %s in unknown state?",p->name, ifa->iface->name); die("%s: Iface %s in unknown state?",p->name, ifa->iface->name);