summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-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);