DESERT 3.5.1
|
#include <uwtap_clmsg.h>
Public Member Functions | |
ClMsgTapPkt () | |
ClMsgTapPkt (Packet *packet, clmsg_tap_type type, double timestamp=NOW, double tx_duration=0.0) | |
ClMsgTapPkt (int dest_id) | |
virtual | ~ClMsgTapPkt ()=default |
bool | getPacket (Packet *packet) |
double | getTimestamp () const |
double | getTxDuration () const |
void | setPacket (Packet *packet) |
Public Attributes | |
Packet * | pkt |
clmsg_tap_type | clmsg_type |
double | timestamp |
double | tx_duration |
Static Public Attributes | |
static const uint | CLMSG_TAP_VERBOSITY = 3 |
Definition at line 47 of file uwtap_clmsg.h.
ClMsgTapPkt::ClMsgTapPkt | ( | ) |
Constructor for broadcast ClMsg.
Definition at line 43 of file uwtap_clmsg.cpp.
ClMsgTapPkt::ClMsgTapPkt | ( | Packet * | packet, |
clmsg_tap_type | type, | ||
double | timestamp = NOW , |
||
double | tx_duration = 0.0 |
||
) |
Constructor for broadcast ClMsg.
Definition at line 52 of file uwtap_clmsg.cpp.
ClMsgTapPkt::ClMsgTapPkt | ( | int | dest_id | ) |
Constructor for UNICAST ClMsg.
dest_id | id of the destiantion module |
Definition at line 62 of file uwtap_clmsg.cpp.
|
virtualdefault |
Destructor.
bool ClMsgTapPkt::getPacket | ( | Packet * | packet | ) |
Returns the pointer to the overheard packet.
packet | pointer reference to the packet to be returned |
Definition at line 71 of file uwtap_clmsg.cpp.
double ClMsgTapPkt::getTimestamp | ( | ) | const |
Returns the timestamp of the overheard packet.
Definition at line 87 of file uwtap_clmsg.cpp.
double ClMsgTapPkt::getTxDuration | ( | ) | const |
Returns the timestamp of the overheard packet.
Definition at line 93 of file uwtap_clmsg.cpp.
void ClMsgTapPkt::setPacket | ( | Packet * | packet | ) |
Set the packet to send via clmsg.
packet | pointer to the packet |
Definition at line 81 of file uwtap_clmsg.cpp.
|
static |
Definition at line 96 of file uwtap_clmsg.h.
clmsg_tap_type ClMsgTapPkt::clmsg_type |
packet to send via clmsg to other layers.
Definition at line 98 of file uwtap_clmsg.h.
Packet* ClMsgTapPkt::pkt |
Verbosity level.
Definition at line 97 of file uwtap_clmsg.h.
double ClMsgTapPkt::timestamp |
Definition at line 99 of file uwtap_clmsg.h.
double ClMsgTapPkt::tx_duration |
rx or tx timestamp
Definition at line 100 of file uwtap_clmsg.h.