docs: improve Doxygen comments.
refs: #1435
Change-Id: I21624ef4eec393c82a50229a07e8277fb6ae4ddf
diff --git a/src/lsa.cpp b/src/lsa.cpp
index 753ace3..410d56a 100644
--- a/src/lsa.cpp
+++ b/src/lsa.cpp
@@ -248,7 +248,6 @@
return m_adl == alsa.getAdl();
}
-
string
AdjLsa::getData()
{
@@ -311,11 +310,13 @@
return true;
}
-
void
AdjLsa::addNptEntries(Nlsr& pnlsr)
{
+ // Only add NPT entries if this is an adj LSA from another router.
if (getOrigRouter() != pnlsr.getConfParameter().getRouterPrefix()) {
+ // Pass the originating router as both the name to register and
+ // where it came from.
pnlsr.getNamePrefixTable().addEntry(getOrigRouter(), getOrigRouter());
}
}