Reset inactim timer if you receive any packet from neighbor.
This commit is contained in:
parent
496c819f26
commit
4bb9ce56bb
4 changed files with 5 additions and 1 deletions
|
@ -219,6 +219,7 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p,
|
||||||
|
|
||||||
debug("%s: Received dbdes from %I via %s.\n", p->name, n->ip,
|
debug("%s: Received dbdes from %I via %s.\n", p->name, n->ip,
|
||||||
ifa->iface->name);
|
ifa->iface->name);
|
||||||
|
ospf_neigh_sm(n, INM_HELLOREC);
|
||||||
|
|
||||||
switch(n->state)
|
switch(n->state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -169,6 +169,7 @@ ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p,
|
||||||
}
|
}
|
||||||
|
|
||||||
debug("%s: Received LS ack from %I\n", p->name, n->ip);
|
debug("%s: Received LS ack from %I\n", p->name, n->ip);
|
||||||
|
ospf_neigh_sm(n, INM_HELLOREC);
|
||||||
|
|
||||||
if(n->state<NEIGHBOR_EXCHANGE) return;
|
if(n->state<NEIGHBOR_EXCHANGE) return;
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,7 @@ ospf_lsreq_rx(struct ospf_lsreq_packet *ps, struct proto *p,
|
||||||
if(n->state<NEIGHBOR_EXCHANGE) return;
|
if(n->state<NEIGHBOR_EXCHANGE) return;
|
||||||
|
|
||||||
debug("%s: Received LS req from neighbor: %I\n",p->name, n->ip);
|
debug("%s: Received LS req from neighbor: %I\n",p->name, n->ip);
|
||||||
|
ospf_neigh_sm(n, INM_HELLOREC);
|
||||||
|
|
||||||
length=ntohs(ps->ospf_packet.length);
|
length=ntohs(ps->ospf_packet.length);
|
||||||
lsh=(void *)(ps+1);
|
lsh=(void *)(ps+1);
|
||||||
|
|
|
@ -264,7 +264,8 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
debug("%s: Received LS upd from %I\n", p->name, n->ip);
|
debug("%s: Received LS upd from %I\n", p->name, n->ip);
|
||||||
|
ospf_neigh_sm(n, INM_HELLOREC);
|
||||||
|
|
||||||
lsa=(struct ospf_lsa_header *)(ps+1);
|
lsa=(struct ospf_lsa_header *)(ps+1);
|
||||||
area=htonl(ps->ospf_packet.areaid);
|
area=htonl(ps->ospf_packet.areaid);
|
||||||
|
|
Loading…
Reference in a new issue