gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
EthPacketData Class Reference

#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. More...
 
unsigned bufLength
 Total size of the allocated data buffer. More...
 
unsigned length
 Amount of space occupied by the payload in the data buffer. More...
 
unsigned simLength
 Effective length, used for modeling timing in the simulator. More...
 

Detailed Description

Definition at line 46 of file etherpkt.hh.

Constructor & Destructor Documentation

◆ EthPacketData() [1/2]

EthPacketData::EthPacketData ( )
inline

Definition at line 73 of file etherpkt.hh.

◆ EthPacketData() [2/2]

EthPacketData::EthPacketData ( unsigned  size)
inlineexplicit

Definition at line 77 of file etherpkt.hh.

◆ ~EthPacketData()

EthPacketData::~EthPacketData ( )
inline

Definition at line 81 of file etherpkt.hh.

References data.

Member Function Documentation

◆ serialize()

void EthPacketData::serialize ( const std::string &  base,
CheckpointOut cp 
) const

Definition at line 40 of file etherpkt.cc.

References arrayParamOut(), X86ISA::base, data, length, and paramOut().

◆ unserialize()

void EthPacketData::unserialize ( const std::string &  base,
CheckpointIn cp 
)

Definition at line 49 of file etherpkt.cc.

References arrayParamIn(), X86ISA::base, data, length, optParamIn(), and paramIn().

Member Data Documentation

◆ bufLength

unsigned EthPacketData::bufLength

Total size of the allocated data buffer.

Definition at line 57 of file etherpkt.hh.

◆ data

uint8_t* EthPacketData::data

Pointer to packet data will be deleted.

Definition at line 52 of file etherpkt.hh.

Referenced by ~EthPacketData().

◆ length

unsigned EthPacketData::length

Amount of space occupied by the payload in the data buffer.

Definition at line 62 of file etherpkt.hh.

◆ simLength

unsigned 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 71 of file etherpkt.hh.


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:24 for gem5 by doxygen 1.8.17