summaryrefslogtreecommitdiffstats
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2005-02-20 05:27:56 +0100
committerOndrej Filip <feela@network.cz>2005-02-20 05:27:56 +0100
commitd8c7d9e8846f025e42227c64e992a3a52ca7dfb4 (patch)
tree4f090dda24bf8288b3af358fd3375c0374e75d93 /proto/ospf/hello.c
parent7de7470a2a6c649ce4d4ce52146e84e6638ebf58 (diff)
downloadbird-d8c7d9e8846f025e42227c64e992a3a52ca7dfb4.tar
bird-d8c7d9e8846f025e42227c64e992a3a52ca7dfb4.zip
Since now I can also use 'dead interval', not just 'dead counter'.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r--proto/ospf/hello.c4
1 files changed, 2 insertions, 2 deletions
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;