gem5 v24.0.0.0
|
#include <etherpkt.hh>
Public Member Functions | |
EthPacketData () | |
EthPacketData (unsigned size) | |
~EthPacketData () | |
void | serialize (const std::string &base, CheckpointOut &cp) const |
void | unserialize (const std::string &base, CheckpointIn &cp) |
Public Attributes | |
uint8_t * | data |
Pointer to packet data will be deleted. | |
unsigned | bufLength |
Total size of the allocated data buffer. | |
unsigned | length |
Amount of space occupied by the payload in the data buffer. | |
unsigned | simLength |
Effective length, used for modeling timing in the simulator. | |
Definition at line 49 of file etherpkt.hh.
|
inline |
Definition at line 76 of file etherpkt.hh.
|
inlineexplicit |
Definition at line 80 of file etherpkt.hh.
|
inline |
Definition at line 84 of file etherpkt.hh.
References data.
void gem5::EthPacketData::serialize | ( | const std::string & | base, |
CheckpointOut & | cp ) const |
Definition at line 41 of file etherpkt.cc.
References gem5::arrayParamOut(), gem5::X86ISA::base, bufLength, data, length, gem5::paramOut(), and simLength.
void gem5::EthPacketData::unserialize | ( | const std::string & | base, |
CheckpointIn & | cp ) |
Definition at line 50 of file etherpkt.cc.
References gem5::arrayParamIn(), gem5::X86ISA::base, bufLength, data, length, gem5::optParamIn(), gem5::paramIn(), and simLength.
unsigned gem5::EthPacketData::bufLength |
Total size of the allocated data buffer.
Definition at line 60 of file etherpkt.hh.
Referenced by serialize(), and unserialize().
uint8_t* gem5::EthPacketData::data |
Pointer to packet data will be deleted.
Definition at line 55 of file etherpkt.hh.
Referenced by serialize(), unserialize(), and ~EthPacketData().
unsigned gem5::EthPacketData::length |
Amount of space occupied by the payload in the data buffer.
Definition at line 65 of file etherpkt.hh.
Referenced by serialize(), and unserialize().
unsigned gem5::EthPacketData::simLength |
Effective length, used for modeling timing in the simulator.
This could be different from length if the packets are assumed to use a tightly packed or compressed format, but it's not worth the performance/complexity hit to perform that packing or compression in the simulation.
Definition at line 74 of file etherpkt.hh.
Referenced by serialize(), and unserialize().