summaryrefslogtreecommitdiff
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2005-02-20 04:27:56 +0000
committerOndrej Filip <feela@network.cz>2005-02-20 04:27:56 +0000
commitd8c7d9e8846f025e42227c64e992a3a52ca7dfb4 (patch)
tree4f090dda24bf8288b3af358fd3375c0374e75d93 /proto/ospf/iface.c
parent7de7470a2a6c649ce4d4ce52146e84e6638ebf58 (diff)
Since now I can also use 'dead interval', not just 'dead counter'.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r--proto/ospf/iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 68b6377d..cce7fafe 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -393,7 +393,7 @@ ospf_iface_new(struct proto_ospf *po, struct iface *iface,
ifa->pollint = ip->pollint;
ifa->strictnbma = ip->strictnbma;
ifa->waitint = ip->waitint;
- ifa->deadc = ip->deadc;
+ ifa->dead = (ip->dead == 0) ? ip->deadc * ifa->helloint : ip->dead;
ifa->stub = ip->stub;
ifa->autype = ip->autype;
ifa->passwords = ip->passwords;
@@ -585,7 +585,7 @@ ospf_iface_info(struct ospf_iface *ifa)
cli_msg(-1015, "\tPoll timer: %u", ifa->pollint);
}
cli_msg(-1015, "\tWait timer: %u", ifa->waitint);
- cli_msg(-1015, "\tDead timer: %u", ifa->deadc * ifa->helloint);
+ cli_msg(-1015, "\tDead timer: %u", ifa->dead);
cli_msg(-1015, "\tRetransmit timer: %u", ifa->rxmtint);
if ((ifa->type == OSPF_IT_BCAST) || (ifa->type == OSPF_IT_NBMA))
{