diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-10-15 11:57:25 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-10-15 11:57:25 +0200 |
commit | 988992446d3aaaef9c19902d94cd1908a963fd80 (patch) | |
tree | 6cda0d0ac8f89b0653b9a405c6228c8fd5b3c2dc /proto/ospf/ospf.h | |
parent | b66abe8ef986698caccd08b38a991330f0791075 (diff) |
Implement command to show LSA db.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r-- | proto/ospf/ospf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index e89769df..d826c734 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; |