summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-05 21:45:06 +0200
committerOndrej Filip <feela@network.cz>2000-06-05 21:45:06 +0200
commit4bb9ce56bbf42ac09fc8293d8419835b6f178e83 (patch)
treedae5fe5e597491187c867ef06db5c2ade34b5c3f /proto/ospf
parent496c819f26f67593797f0b861e153399c1d63a86 (diff)
downloadbird-4bb9ce56bbf42ac09fc8293d8419835b6f178e83.tar
bird-4bb9ce56bbf42ac09fc8293d8419835b6f178e83.zip
Reset inactim timer if you receive any packet from neighbor.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/dbdes.c1
-rw-r--r--proto/ospf/lsack.c1
-rw-r--r--proto/ospf/lsreq.c1
-rw-r--r--proto/ospf/lsupd.c3
4 files changed, 5 insertions, 1 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c
index 7162e16..7278ccb 100644
--- a/proto/ospf/dbdes.c
+++ b/proto/ospf/dbdes.c
@@ -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)
{
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c
index a9853f4..f79aa2a 100644
--- a/proto/ospf/lsack.c
+++ b/proto/ospf/lsack.c
@@ -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;
diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c
index acd36a8..c9c4b1d 100644
--- a/proto/ospf/lsreq.c
+++ b/proto/ospf/lsreq.c
@@ -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);
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index 8fbef11..e28b6a7 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -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);