Reset inactim timer if you receive any packet from neighbor.

This commit is contained in:
Ondrej Filip 2000-06-05 19:45:06 +00:00
parent 496c819f26
commit 4bb9ce56bb
4 changed files with 5 additions and 1 deletions

View file

@ -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,
ifa->iface->name);
ospf_neigh_sm(n, INM_HELLOREC);
switch(n->state)
{

View file

@ -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);
ospf_neigh_sm(n, INM_HELLOREC);
if(n->state<NEIGHBOR_EXCHANGE) return;

View file

@ -127,6 +127,7 @@ ospf_lsreq_rx(struct ospf_lsreq_packet *ps, struct proto *p,
if(n->state<NEIGHBOR_EXCHANGE) return;
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);
lsh=(void *)(ps+1);

View file

@ -265,6 +265,7 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
}
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);
area=htonl(ps->ospf_packet.areaid);