gem5 v24.0.0.0
Loading...
Searching...
No Matches
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 157 of file inet.hh.

Member Function Documentation

◆ bytes() [1/2]

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

Definition at line 187 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 185 of file inet.hh.

Referenced by payload(), and payload().

◆ dst()

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

Definition at line 176 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 188 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

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

Definition at line 186 of file inet.hh.

References bytes(), and size().

◆ size()

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

Definition at line 178 of file inet.hh.

References isVlan().

Referenced by payload(), and payload().

◆ src()

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

Definition at line 175 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 168 of file inet.hh.

References isVlan().


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

Generated on Tue Jun 18 2024 16:24:20 for gem5 by doxygen 1.11.0