#include <EthernetPauseCommandProcessor.h>
◆ handleMessage()
| void inet::EthernetPauseCommandProcessor::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
26 if (
auto rq =
dynamic_cast<Request *
>(msg)) {
27 auto ctrl = msg->getControlInfo();
28 if (
auto cmd =
dynamic_cast<Ieee802PauseCommand *
>(
ctrl)) {
◆ handleSendPause()
38 MacAddress dest = etherctrl->getDestinationAddress();
39 int pauseUnits = etherctrl->getPauseUnits();
42 EV_DETAIL <<
"Creating and sending PAUSE frame, with duration = " << pauseUnits <<
" units\n";
46 sprintf(framename,
"pause-%d-%d", getId(),
seqNum++);
47 auto packet =
new Packet(framename);
48 const auto& frame = makeShared<EthernetPauseFrame>();
49 frame->setPauseTime(pauseUnits);
50 packet->insertAtFront(frame);
51 if (dest.isUnspecified())
53 packet->addTag<MacAddressReq>()->setDestAddress(dest);
56 EV_INFO <<
"Sending Pause command " << frame <<
" to lower layer.\n";
Referenced by handleMessage().
◆ initialize()
| void inet::EthernetPauseCommandProcessor::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ pauseSentSignal
| simsignal_t inet::EthernetPauseCommandProcessor::pauseSentSignal = registerSignal("pauseSent") |
|
staticprotected |
◆ seqNum
| int inet::EthernetPauseCommandProcessor::seqNum = 0 |
|
protected |
The documentation for this class was generated from the following files: