Loopback interface implementation.
More...
#include <Loopback.h>
Loopback interface implementation.
inet::Loopback::Loopback |
( |
| ) |
|
|
inline |
inet::Loopback::~Loopback |
( |
| ) |
|
|
virtual |
void inet::Loopback::clearQueue |
( |
| ) |
|
|
overrideprotectedvirtual |
should create InterfaceEntry
Implements inet::MACBase.
59 InterfaceEntry *ie =
new InterfaceEntry(
this);
66 ie->setMtu(par(
"mtu").longValue());
67 ie->setLoopback(
true);
void inet::Loopback::flushQueue |
( |
| ) |
|
|
overrideprotectedvirtual |
should clear queue and emit signal "dropPkFromHLIfaceDown" with entire packets
Implements inet::MACBase.
void inet::Loopback::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
80 EV <<
"Received " << msg <<
" for transmission\n";
81 ASSERT(
PK(msg)->hasBitError() ==
false);
static simsignal_t packetSentToUpperSignal
Definition: Loopback.h:43
bool isOperational
Definition: MACBase.h:37
virtual void handleMessageWhenDown(cMessage *msg)
Definition: MACBase.cc:108
#define PK(msg)
Definition: INETDefs.h:92
long numRcvdOK
Definition: Loopback.h:41
long numSent
Definition: Loopback.h:40
static simsignal_t packetReceivedFromUpperSignal
Definition: Loopback.h:44
void inet::Loopback::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::MACBase.
virtual void initialize(int stage) override
Definition: MACBase.cc:37
Local initializations.
Definition: InitStages.h:35
Initialization of link-layer protocols.
Definition: InitStages.h:59
long numRcvdOK
Definition: Loopback.h:41
long numSent
Definition: Loopback.h:40
void registerInterface()
Definition: MACBase.cc:98
bool inet::Loopback::isUpperMsg |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
should return true if the msg arrived from upper layer, else return false
Implements inet::MACBase.
virtual int inet::Loopback::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Reimplemented from inet::MACBase.
The number of initialization stages.
Definition: InitStages.h:116
void inet::Loopback::refreshDisplay |
( |
| ) |
const |
|
overrideprotectedvirtual |
114 getDisplayString().setTagArg(
"t", 0, buf);
long numRcvdOK
Definition: Loopback.h:41
long numSent
Definition: Loopback.h:40
long inet::Loopback::numRcvdOK = 0 |
|
protected |
long inet::Loopback::numSent = 0 |
|
protected |
simsignal_t inet::Loopback::packetReceivedFromUpperSignal = registerSignal("packetReceivedFromUpper") |
|
staticprotected |
simsignal_t inet::Loopback::packetSentToUpperSignal = registerSignal("packetSentToUpper") |
|
staticprotected |
The documentation for this class was generated from the following files: