RXMT timer handling bug fix.
This commit is contained in:
parent
3fba209688
commit
315648af8e
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,7 @@ ospf_dbdes_tx(struct ospf_neighbor *n)
|
||||||
|
|
||||||
sk_send_to(ifa->ip_sk,length, n->ip, OSPF_PROTO);
|
sk_send_to(ifa->ip_sk,length, n->ip, OSPF_PROTO);
|
||||||
debug("%s: DB_DES sent for %u.\n", p->name, n->rid);
|
debug("%s: DB_DES sent for %u.\n", p->name, n->rid);
|
||||||
|
if(n->myimms.bit.ms) tm_start(n->ifa->rxmt_timer,1);
|
||||||
|
|
||||||
default: /* Ignore it */
|
default: /* Ignore it */
|
||||||
break;
|
break;
|
||||||
|
@ -222,6 +223,7 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p,
|
||||||
n->imms.byte=ps->imms.byte;
|
n->imms.byte=ps->imms.byte;
|
||||||
debug("%s: I'm slave to %u. \n", p->name, nrid);
|
debug("%s: I'm slave to %u. \n", p->name, nrid);
|
||||||
ospf_neigh_sm(n, INM_NEGDONE);
|
ospf_neigh_sm(n, INM_NEGDONE);
|
||||||
|
tm_stop(n->ifa->rxmt_timer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue