summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-07-14 00:10:14 +0200
committerOndrej Filip <feela@network.cz>2004-07-14 00:10:14 +0200
commit490767adfce6207012f54f004babcb2aef7f33f8 (patch)
tree68fc597952dc901559e2e93cf3d6a277aaa768b2 /proto
parentfe1489e6c13a405b0c76c36213af4017dd4ea2ec (diff)
downloadbird-490767adfce6207012f54f004babcb2aef7f33f8.tar
bird-490767adfce6207012f54f004babcb2aef7f33f8.zip
Add more reasonable options to LSAs. (But it seems, that it's ignored.)
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/topology.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index 027ef8f..562ddb5 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -453,6 +453,7 @@ originate_sum_lsa(struct ospf_area *oa, struct fib_node *fn, int type, int metri
lsa.sn = LSA_INITSEQNO;
lsa.length = sizeof(struct ospf_lsa_sum) + sizeof(union ospf_lsa_sum_tm) +
sizeof(struct ospf_lsa_header);
+ lsa.options = oa->opt.byte;
max = max_ext_lsa(fn->pxlen);
for (i = 0; i < max; i++)
@@ -592,6 +593,7 @@ originate_ext_lsa(net * n, rte * e, struct proto_ospf *po,
lsa.type = LSA_T_EXT;
lsa.rt = rtid;
lsa.sn = LSA_INITSEQNO;
+ lsa.options = 0;
body = originate_ext_lsa_body(n, e, po, attrs);
lsa.length = sizeof(struct ospf_lsa_ext) + sizeof(struct ospf_lsa_ext_tos) +