gem5  v22.0.0.2
Public Member Functions | List of all members
gem5::networking::EthHdr Struct Reference

#include <inet.hh>

Inheritance diagram for gem5::networking::EthHdr:

Public Member Functions

bool isVlan () const
 
uint16_t type () const
 
uint16_t vlanId () const
 
const EthAddrsrc () const
 
const EthAddrdst () const
 
int size () const
 
const uint8_t * bytes () const
 
const uint8_t * payload () const
 
uint8_t * bytes ()
 
uint8_t * payload ()
 

Detailed Description

Definition at line 158 of file inet.hh.

Member Function Documentation

◆ bytes() [1/2]

uint8_t* gem5::networking::EthHdr::bytes ( )
inline

Definition at line 188 of file inet.hh.

◆ bytes() [2/2]

const uint8_t* gem5::networking::EthHdr::bytes ( ) const
inline

Definition at line 186 of file inet.hh.

Referenced by payload().

◆ dst()

const EthAddr& gem5::networking::EthHdr::dst ( ) const
inline

Definition at line 177 of file inet.hh.

Referenced by gem5::NSGigE::rxFilter().

◆ isVlan()

bool gem5::networking::EthHdr::isVlan ( ) const
inline

◆ payload() [1/2]

uint8_t* gem5::networking::EthHdr::payload ( )
inline

Definition at line 189 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

const uint8_t* gem5::networking::EthHdr::payload ( ) const
inline

Definition at line 187 of file inet.hh.

References bytes(), and size().

◆ size()

int gem5::networking::EthHdr::size ( ) const
inline

Definition at line 179 of file inet.hh.

References isVlan().

Referenced by payload().

◆ src()

const EthAddr& gem5::networking::EthHdr::src ( ) const
inline

Definition at line 176 of file inet.hh.

◆ type()

uint16_t gem5::networking::EthHdr::type ( ) const
inline

◆ vlanId()

uint16_t gem5::networking::EthHdr::vlanId ( ) const
inline

Definition at line 169 of file inet.hh.

References isVlan().


The documentation for this struct was generated from the following file:

Generated on Thu Jul 28 2022 13:34:10 for gem5 by doxygen 1.8.17