summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-09-04 00:18:40 +0200
committerOndrej Filip <feela@network.cz>2000-09-04 00:18:40 +0200
commitfdb19982020abeddf2d9eb73efae92ae2cc58d93 (patch)
tree4c837c9252bb1d3324c0a4005cd600d3081c7810 /proto/ospf/ospf.h
parentf02e4258b9bb7f823ddfbfb88284c868502b1433 (diff)
downloadbird-fdb19982020abeddf2d9eb73efae92ae2cc58d93.tar
bird-fdb19982020abeddf2d9eb73efae92ae2cc58d93.zip
Serious bug in ext lsa origination found. Going for 1.0.4.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index dd63c4c..d5ff8e9 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -209,8 +209,20 @@ struct ospf_lsa_header {
u16 length;
};
+struct vebb {
+ u8 b:1;
+ u8 e:1;
+ u8 v:1;
+ u8 padding:5;
+};
+
+union veb {
+ u8 byte;
+ struct vebb bit;
+};
+
struct ospf_lsa_rt {
- u8 VEB;
+ union veb veb;
#define LSA_RT_V 5
#define LSA_RT_E 6
#define LSA_RT_B 7
@@ -375,7 +387,8 @@ struct proto_ospf {
list area_list;
int areano; /* Number of area I belong to */
struct fib efib; /* FIB for external routes */
- int rfc1583;
+ int rfc1583; /* RFC1583 compatibility */
+ int ebit; /* Did I originate any ext lsa? */
};
struct ospf_iface_patt {