61 void format(Packet *p, SAP *sap);
78 hdr_cmn *ch = hdr_cmn::access(p);
79 hdr_mac *mach = HDR_MAC(p);
85 " MACSRC=%d MACDST=%d SN=%d TS=%f TP=%s SZ=%d",
94 else if (ch->ptype() ==
PT_WKUP) {
95 writeTrace(sap,
" TONE");
Class that represents a Tracer for T-LOHI protocol.
void format(Packet *p, SAP *sap)
Format the output for the tracer.
char * printType(TLOHI_PKT_TYPE type)
Print the type of packet.
TLohiTracer()
Constructor of the class.
Struct that defines the header of T-LOHI in the packets.
double ts
packet timestamp, i.e., its generation time)
TLOHI_PKT_TYPE pkt_type
T-LOHI packet type.
int sn
sequence number of this packet
int Uwmactlohitracer_Init()
int Cyguwmactlohitracer_Init()
Provides the declaration of uw-mac-TLohi MAC protocol.
TLOHI_PKT_TYPE
Enumeration that indicates the possibile type of packets in T-LOHI MAC protocol.
Provides the definition of the Wake Up Tone Packet Header.