From d8c7d9e8846f025e42227c64e992a3a52ca7dfb4 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 20 Feb 2005 04:27:56 +0000 Subject: Since now I can also use 'dead interval', not just 'dead counter'. --- proto/ospf/iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf/iface.c') diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 68b6377..cce7faf 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)) { -- cgit v1.2.3