gem5  v20.1.0.0
Public Member Functions | List of all members
Net::EthHdr Struct Reference

#include <inet.hh>

Inheritance diagram for Net::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 152 of file inet.hh.

Member Function Documentation

◆ bytes() [1/2]

uint8_t* Net::EthHdr::bytes ( )
inline

Definition at line 182 of file inet.hh.

◆ bytes() [2/2]

const uint8_t* Net::EthHdr::bytes ( ) const
inline

Definition at line 180 of file inet.hh.

Referenced by payload().

◆ dst()

const EthAddr& Net::EthHdr::dst ( ) const
inline

Definition at line 171 of file inet.hh.

Referenced by NSGigE::rxFilter().

◆ isVlan()

bool Net::EthHdr::isVlan ( ) const
inline

Definition at line 154 of file inet.hh.

Referenced by Net::IpPtr::set(), Net::Ip6Ptr::set(), size(), type(), and vlanId().

◆ payload() [1/2]

uint8_t* Net::EthHdr::payload ( )
inline

Definition at line 183 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

const uint8_t* Net::EthHdr::payload ( ) const
inline

Definition at line 181 of file inet.hh.

References bytes(), and size().

◆ size()

int Net::EthHdr::size ( ) const
inline

Definition at line 173 of file inet.hh.

References isVlan().

Referenced by payload().

◆ src()

const EthAddr& Net::EthHdr::src ( ) const
inline

Definition at line 170 of file inet.hh.

◆ type()

uint16_t Net::EthHdr::type ( ) const
inline

Definition at line 155 of file inet.hh.

References isVlan().

Referenced by NSGigE::rxFilter(), Net::IpPtr::set(), and Net::Ip6Ptr::set().

◆ vlanId()

uint16_t Net::EthHdr::vlanId ( ) const
inline

Definition at line 163 of file inet.hh.

References isVlan().


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

Generated on Wed Sep 30 2020 14:03:07 for gem5 by doxygen 1.8.17