summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-10-15 11:57:25 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-10-15 11:57:25 +0200
commit988992446d3aaaef9c19902d94cd1908a963fd80 (patch)
tree6cda0d0ac8f89b0653b9a405c6228c8fd5b3c2dc /proto/ospf/ospf.h
parentb66abe8ef986698caccd08b38a991330f0791075 (diff)
downloadbird-988992446d3aaaef9c19902d94cd1908a963fd80.tar
bird-988992446d3aaaef9c19902d94cd1908a963fd80.zip
Implement command to show LSA db.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index e89769d..d826c73 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -347,6 +347,11 @@ struct ospf_lsa_header
#define LSA_T_SUM_RT 4
#define LSA_T_EXT 5
+#define LSA_SCOPE_AREA 0x2000
+#define LSA_SCOPE_AS 0x4000
+
+#define LSA_SCOPE(lsa) (((lsa)->type == LSA_T_EXT) ? LSA_SCOPE_AS : LSA_SCOPE_AREA)
+
#else /* OSPFv3 */
u16 type;