]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Reset inactim timer if you receive any packet from neighbor.
authorOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 19:45:06 +0000 (19:45 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 19:45:06 +0000 (19:45 +0000)
proto/ospf/dbdes.c
proto/ospf/lsack.c
proto/ospf/lsreq.c
proto/ospf/lsupd.c

index 7162e16459b7f5e3ae441edb24feef2d6c2824d5..7278ccb1c9db4b841203104d9f3273b72e440334 100644 (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)
   {
index a9853f4eee70e295c5e18ce33bc1669ae6bb0ed6..f79aa2ae4ac6bdca81e6721b775c3ffabb107b8a 100644 (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;
 
index acd36a81fd38d41313d0440449d0538b31723b5d..c9c4b1d1e15e044a7c81635cedf75ba36eb78090 100644 (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);
index 8fbef111d026d37add13560cd91352eb4cc1815c..e28b6a7edfe405e4207597837b633f0c3913bfd6 100644 (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);