diff options
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r-- | proto/ospf/neighbor.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index bc4d1c37..d9c9b1be 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -67,11 +67,6 @@ neigh_chstate(struct ospf_neighbor *n, u8 state) schedule_rt_lsa(ifa->oa); schedule_net_lsa(ifa); } - if(oldstate>=NEIGHBOR_EXSTART && state<NEIGHBOR_EXSTART) - { - /* Stop RXMT timer */ - tm_stop(n->rxmt_timer); - } if(state==NEIGHBOR_EXSTART) { if(n->adj==0) /* First time adjacency */ @@ -86,6 +81,8 @@ neigh_chstate(struct ospf_neighbor *n, u8 state) tm_start(n->rxmt_timer,1); /* Or some other number ? */ } if(state<NEIGHBOR_EXCHANGE) tm_stop(n->lsrr_timer); + if(state<NEIGHBOR_EXSTART) tm_stop(n->rxmt_timer); + if(state>NEIGHBOR_EXSTART) n->myimms.bit.i=0; } } |