From 621ccdfe5acd2889956ec0f8e96b812acd09f168 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 13 Jul 2004 11:58:50 +0000 Subject: Bugfix - options bits were not included in LSAs Bugfix - E bit was not unset on stub areas. --- 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 bc5e876..73721d1 100644 --- a/proto/ospf/hello.c +++ b/proto/ospf/hello.c @@ -44,7 +44,7 @@ ospf_hello_receive(struct ospf_hello_packet *ps, return; } - if (ps->options != ifa->options) + if (ps->options != ifa->oa->opt.byte) { log(L_ERR "%s%I%soptions mismatch (0x%x).", beg, faddr, rec, ps->options); return; @@ -207,7 +207,7 @@ ospf_hello_send(timer * timer, int poll, struct ospf_neighbor *dirn) pkt->netmask = ipa_mkmask(ifa->iface->addr->pxlen); ipa_hton(pkt->netmask); pkt->helloint = ntohs(ifa->helloint); - pkt->options = ifa->options; + pkt->options = ifa->oa->opt.byte; pkt->priority = ifa->priority; pkt->deadint = htonl(ifa->deadc * ifa->helloint); pkt->dr = ifa->drip; -- cgit v1.2.3