#include <Bgp.h>
◆ Bgp()
◆ ~Bgp()
◆ createBgpRouter()
| void inet::bgp::Bgp::createBgpRouter |
( |
| ) |
|
|
protected |
88 cXMLElement *bgpConfig = par(
"bgpConfig");
89 BgpConfigReader configReader(
this,
ift);
90 configReader.loadConfigFromXML(bgpConfig,
bgpRouter);
Referenced by handleMessage(), and initialize().
◆ finish()
| void inet::bgp::Bgp::finish |
( |
| ) |
|
|
overrideprotectedvirtual |
56 EV_ERROR <<
"Protocol is turned off. \n";
◆ handleMessage()
| void inet::bgp::Bgp::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
66 if (msg->isSelfMessage())
67 throw cRuntimeError(
"Model error: self msg '%s' received when protocol is down", msg->getName());
68 EV_ERROR <<
"Protocol is turned off, dropping '" << msg->getName() <<
"' message\n";
75 else if (msg->isSelfMessage())
77 else if (!strcmp(msg->getArrivalGate()->getName(),
"socketIn"))
◆ handleTimer()
| void inet::bgp::Bgp::handleTimer |
( |
cMessage * |
timer | ) |
|
|
protected |
98 BgpSession *pSession = (BgpSession *)timer->getContextPointer();
100 switch (timer->getKind()) {
102 EV_INFO <<
"Processing Start Event" << std::endl;
103 pSession->getFSM()->ManualStart();
107 EV_INFO <<
"Expiring Connect Retry Timer" << std::endl;
108 pSession->getFSM()->ConnectRetryTimer_Expires();
112 EV_INFO <<
"Expiring Hold Timer" << std::endl;
113 pSession->getFSM()->HoldTimer_Expires();
117 EV_INFO <<
"Expiring Keep Alive timer" << std::endl;
118 pSession->getFSM()->KeepaliveTimer_Expires();
122 throw cRuntimeError(
"Invalid timer kind %d", timer->getKind());
Referenced by handleMessage().
◆ initialize()
| void inet::bgp::Bgp::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
31 cSimpleModule::initialize(stage);
34 ift.reference(
this,
"interfaceTableModule",
true);
35 rt.reference(
this,
"routingTableModule",
true);
41 NodeStatus *nodeStatus = node ? check_and_cast_nullable<NodeStatus *>(node->getSubmodule(
"status")) : nullptr;
44 simtime_t startupTime = par(
"startupTime");
◆ numInitStages()
| virtual int inet::bgp::Bgp::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ bgpRouter
| BgpRouter* inet::bgp::Bgp::bgpRouter = nullptr |
|
private |
◆ ift
◆ isUp
| bool inet::bgp::Bgp::isUp = false |
|
private |
◆ rt
◆ startupTimer
| cMessage* inet::bgp::Bgp::startupTimer = nullptr |
|
private |
The documentation for this class was generated from the following files: