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

#include <inet.hh>

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

Member Function Documentation

◆ bytes() [1/2]

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

Definition at line 747 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 745 of file inet.hh.

Referenced by payload().

◆ dport()

uint16_t Net::UdpHdr::dport ( ) const
inline

Definition at line 737 of file inet.hh.

◆ len() [1/2]

uint16_t Net::UdpHdr::len ( ) const
inline

Definition at line 738 of file inet.hh.

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

◆ len() [2/2]

void Net::UdpHdr::len ( uint16_t  _len)
inline

Definition at line 742 of file inet.hh.

◆ payload() [1/2]

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

Definition at line 748 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

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

Definition at line 746 of file inet.hh.

References bytes(), and size().

◆ size()

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

Definition at line 744 of file inet.hh.

Referenced by payload(), and Net::UdpPtr::pstart().

◆ sport()

uint16_t Net::UdpHdr::sport ( ) const
inline

Definition at line 736 of file inet.hh.

◆ sum() [1/2]

uint16_t Net::UdpHdr::sum ( ) const
inline

Definition at line 739 of file inet.hh.

Referenced by IGbE::TxDescCache::pktComplete(), Sinic::Device::txKick(), and NSGigE::txKick().

◆ sum() [2/2]

void Net::UdpHdr::sum ( uint16_t  sum)
inline

Definition at line 741 of file inet.hh.

References sum().

Referenced by sum().


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