77 size_t packMyHdr(Packet *,
unsigned char *,
size_t);
86 size_t unpackMyHdr(
unsigned char *,
size_t, Packet *);
Class to map a ns2 mac header into a bit stream, and vice-versa.
~packerMAC()
Class destructor.
size_t DST_Bits
Bit length of the macSA_ field to be put in the header stream of bits.
size_t Htype_Bits
Bit length of the macDA_ field to be put in the header stream of bits.
size_t TXtime_Bits
Bit length of the hdr_type_ field to be put in the header stream of bits.
size_t SStime_Bits
Bit length of the txtime_ field to be put in the header stream of bits.
void printMyHdrMap()
Method used for debug purposes.
size_t packMyHdr(Packet *, unsigned char *, size_t)
Method to transform the headers of Uwpolling into a stream of bits.
void printMyHdrFields(Packet *)
Method used for debug purposes.
size_t SRC_Bits
Bit length of the ftype_ field to be put in the header stream of bits.
size_t Padding_Bits
Bit length of the sstime_ field to be put in the header stream of bits.
void init()
Init the Packer.
packerMAC()
Class constructor.
size_t unpackMyHdr(unsigned char *, size_t, Packet *)
Method responsible to take the informations from the received buffer and store it into the headers of...
Class exploited by the Uwal module to map an NS-Miracle packet into a bit stream, and vice-versa.
Header of the class responsible to map an NS-Miracle packet into a bit stream, and vice-versa.