Schedule Adj LSA build and installation
diff --git a/nlsr_lsa.hpp b/nlsr_lsa.hpp
index 18a09d3..225229f 100644
--- a/nlsr_lsa.hpp
+++ b/nlsr_lsa.hpp
@@ -73,7 +73,7 @@
setLsType(1);
}
- NameLsa(string origR, uint8_t lst, uint32_t lsn, uint32_t lt, Npl& npl);
+ NameLsa(string origR, uint8_t lst, uint32_t lsn, uint32_t lt, Npl npl);
Npl& getNpl(){
return npl;
@@ -100,6 +100,24 @@
: Lsa()
, adl()
{
+ setLsType(2);
+ }
+
+ AdjLsa(string origR, uint8_t lst, uint32_t lsn, uint32_t lt,
+ uint32_t nl ,Adl padl);
+ Adl& getAdl(){
+ return adl;
+ }
+
+ void addAdjacentToLsa(Adjacent adj)
+ {
+ adl.insert(adj);
+ }
+
+ string getAdjLsaData();
+ uint32_t getNoLink()
+ {
+ return noLink;
}
private:
@@ -107,11 +125,15 @@
Adl adl;
};
+std::ostream&
+operator<<(std::ostream& os, AdjLsa& aLsa);
+
class CorLsa:public Lsa{
public:
CorLsa()
:Lsa()
{
+ setLsType(3);
}
CorLsa(string origR, uint8_t lst, uint32_t lsn, uint32_t lt