|
INET Framework for OMNeT++/OMNEST
|
#include <ISIStypes.h>
Public Member Functions | |
| ~LSPRecord () | |
| bool | operator< (const LSPRecord &lspRec2) const |
Public Attributes | |
| ISISLSPPacket * | LSP |
| ISISTimer * | deadTimer |
| std::vector< bool > | SRMflags |
| std::vector< bool > | SSNflags |
| double | simLifetime |
Definition at line 155 of file ISIStypes.h.
| LSPRecord::~LSPRecord | ( | ) | [inline] |
Definition at line 173 of file ISIStypes.h.
{
/* for (unsigned int i = 0; i < this->LSP->getTLVArraySize(); i++)
{
if(this->LSP->getTLV(i).value != NULL){
delete this->LSP->getTLV(i).value;
}
}*/
this->LSP->setTLVArraySize(0);
if(this->LSP != NULL){
delete this->LSP;
}
// if(this->deadTimer != NULL){
// drop(this->deadTimer);
// delete this->deadTimer;
// }
this->SRMflags.clear();
this->SSNflags.clear();
}
| bool LSPRecord::operator< | ( | const LSPRecord & | lspRec2 | ) | const [inline] |
Definition at line 194 of file ISIStypes.h.
{
for (unsigned int i = 0; i < ISIS_SYSTEM_ID + 2; i++){
if(this->LSP->getLspID(i) < lspRec2.LSP->getLspID(i)){
return true; //first is smaller, so return true
}else if(this->LSP->getLspID(i) > lspRec2.LSP->getLspID(i)){
return false; //first is bigger, so return false
}
//if it's equal then continue to next one
}
//if they're equal, return false
return false;
}
Definition at line 158 of file ISIStypes.h.
Referenced by ISIS::handleL1Lsp(), ISIS::installLSP(), ISIS::purgeLSP(), ISIS::replaceLSP(), and ISIS::sendLSP().
Definition at line 157 of file ISIStypes.h.
Referenced by ISIS::generateLSP(), ISIS::handleL1Csnp(), ISIS::handleL1Lsp(), ISIS::handleL1Psnp(), ISIS::installLSP(), operator<(), ISIS::purgeLSP(), ISIS::replaceLSP(), ISIS::sendLSP(), and ~LSPRecord().
| double LSPRecord::simLifetime |
specify deadTi
Definition at line 161 of file ISIStypes.h.
Referenced by ISIS::installLSP(), ISIS::purgeLSP(), ISIS::replaceLSP(), and ISIS::sendLSP().
| std::vector<bool> LSPRecord::SRMflags |
Definition at line 159 of file ISIStypes.h.
Referenced by ISIS::addFlags(), ISIS::clearSRMflag(), ISIS::clearSRMflags(), ISIS::clearSRMflagsBut(), ISIS::setSRMflag(), ISIS::setSRMflags(), ISIS::setSRMflagsBut(), and ~LSPRecord().
| std::vector<bool> LSPRecord::SSNflags |
Definition at line 160 of file ISIStypes.h.
Referenced by ISIS::addFlags(), ISIS::clearSSNflag(), ISIS::clearSSNflags(), ISIS::clearSSNflagsBut(), ISIS::setSSNflag(), ISIS::setSSNflags(), ISIS::setSSNflagsBut(), and ~LSPRecord().