mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Sorry, it didn't compile. :-(
This commit is contained in:
parent
b29c620f90
commit
551d444382
@ -161,7 +161,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
|
||||
ospf_int_sm(ifa, ISM_NEICH);
|
||||
|
||||
/* Neighbor is no more declaring itself as DR or BDR */
|
||||
if(((n->rid==olddr) && (n->dr!=olddr)) || ((n->rid==olbddr) &&
|
||||
if(((n->rid==olddr) && (n->dr!=olddr)) || ((n->rid==oldbdr) &&
|
||||
(n->dr!=oldbdr)))
|
||||
ospf_int_sm(ifa, ISM_NEICH);
|
||||
}
|
||||
|
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user