From 988992446d3aaaef9c19902d94cd1908a963fd80 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 15 Oct 2009 11:57:25 +0200 Subject: Implement command to show LSA db. --- proto/ospf/ospf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'proto/ospf/ospf.h') 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; -- cgit v1.2.3