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/hello.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf/hello.c') diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c index 5711ac5..ce87431 100644 --- a/proto/ospf/hello.c +++ b/proto/ospf/hello.c @@ -38,7 +38,7 @@ ospf_hello_receive(struct ospf_hello_packet *ps, return; } - if (ntohl(ps->deadint) != ifa->helloint * ifa->deadc) + if (ntohl(ps->deadint) != ifa->dead) { log(L_ERR "%s%I%sdead interval mismatch (%d).", beg, faddr, rec, ntohl(ps->deadint)); @@ -209,7 +209,7 @@ ospf_hello_send(timer * timer, int poll, struct ospf_neighbor *dirn) pkt->helloint = ntohs(ifa->helloint); pkt->options = ifa->oa->opt.byte; pkt->priority = ifa->priority; - pkt->deadint = htonl(ifa->deadc * ifa->helloint); + pkt->deadint = htonl(ifa->dead); pkt->dr = ifa->drip; ipa_hton(pkt->dr); pkt->bdr = ifa->bdrip; -- cgit v1.2.3