37#include "phymac-clmsg.h"
51 : TclClass(
"Module/UW/TAP")
69 if (m->direction() == DOWN) {
72 }
else if (m->direction() == UP) {
83 hdr_cmn *ch = HDR_CMN(p);
84 if (ch->direction() == hdr_cmn::UP) {
90 }
else if (ch->direction() == hdr_cmn::DOWN) {
102 ClMsgMac2PhyGetTxDuration m(pkt);
103 sendSyncClMsgDown(&m);
104 return (m.getDuration());
Class that represents the binding with the tcl configuration script.
TclObject * create(int, const char *const *)
Creates the TCL object needed for the tcl language interpretation.
UwTapClass()
Constructor of the class.
virtual int recvSyncClMsg(ClMessage *m) override
Retrieve packets from other modules.
virtual void recv(Packet *p) override
Performs the reception of packets from upper and lower layers.
virtual double Tap2PhyTxDuration(Packet *p)
Asks the PHY the time needed to transmit a packet.
ClMessage_t CLMSG_TAP_PKT