0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

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

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