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

#include <inet.hh>

Inheritance diagram for gem5::networking::UdpHdr:

Public Member Functions

uint16_t sport () const
 
uint16_t dport () const
 
uint16_t len () const
 
uint16_t sum () const
 
void sum (uint16_t sum)
 
void len (uint16_t _len)
 
int size () const
 
const uint8_t * bytes () const
 
const uint8_t * payload () const
 
uint8_t * bytes ()
 
uint8_t * payload ()
 

Detailed Description

Definition at line 743 of file inet.hh.

Member Function Documentation

◆ bytes() [1/2]

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

Definition at line 756 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 754 of file inet.hh.

Referenced by payload().

◆ dport()

uint16_t gem5::networking::UdpHdr::dport ( ) const
inline

Definition at line 746 of file inet.hh.

◆ len() [1/2]

uint16_t gem5::networking::UdpHdr::len ( ) const
inline

Definition at line 747 of file inet.hh.

Referenced by gem5::IGbE::TxDescCache::pktComplete().

◆ len() [2/2]

void gem5::networking::UdpHdr::len ( uint16_t  _len)
inline

Definition at line 751 of file inet.hh.

◆ payload() [1/2]

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

Definition at line 757 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

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

Definition at line 755 of file inet.hh.

References bytes(), and size().

◆ size()

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

Definition at line 753 of file inet.hh.

Referenced by payload(), and gem5::networking::UdpPtr::pstart().

◆ sport()

uint16_t gem5::networking::UdpHdr::sport ( ) const
inline

Definition at line 745 of file inet.hh.

◆ sum() [1/2]

uint16_t gem5::networking::UdpHdr::sum ( ) const
inline

◆ sum() [2/2]

void gem5::networking::UdpHdr::sum ( uint16_t  sum)
inline

Definition at line 750 of file inet.hh.

References sum().

Referenced by sum().


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