From 4bb9ce56bbf42ac09fc8293d8419835b6f178e83 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 5 Jun 2000 19:45:06 +0000 Subject: [PATCH] Reset inactim timer if you receive any packet from neighbor. --- proto/ospf/dbdes.c | 1 + proto/ospf/lsack.c | 1 + proto/ospf/lsreq.c | 1 + proto/ospf/lsupd.c | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 7162e164..7278ccb1 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 a9853f4e..f79aa2ae 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->statestatename, 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 8fbef111..e28b6a7e 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);