summaryrefslogtreecommitdiffstats
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-07-13 13:58:50 +0200
committerOndrej Filip <feela@network.cz>2004-07-13 13:58:50 +0200
commit621ccdfe5acd2889956ec0f8e96b812acd09f168 (patch)
tree61b4973caa5de3ca4197ca3b92c08759560ec787 /proto/ospf/hello.c
parent9baece57d308d9e0d8eaab9d068471e1884817b8 (diff)
downloadbird-621ccdfe5acd2889956ec0f8e96b812acd09f168.tar
bird-621ccdfe5acd2889956ec0f8e96b812acd09f168.zip
Bugfix - options bits were not included in LSAs
Bugfix - E bit was not unset on stub areas.
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 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;