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

#include <inet.hh>

Inheritance diagram for gem5::networking::TcpHdr:

Public Member Functions

uint16_t sport () const
 
uint16_t dport () const
 
uint32_t seq () const
 
uint32_t ack () const
 
uint8_t off () const
 
uint8_t flags () const
 
uint16_t win () const
 
uint16_t sum () const
 
uint16_t urp () const
 
void sum (uint16_t sum)
 
void seq (uint32_t _seq)
 
void flags (uint8_t _flags)
 
bool options (std::vector< const TcpOpt * > &vec) 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 621 of file inet.hh.

Member Function Documentation

◆ ack()

uint32_t gem5::networking::TcpHdr::ack ( ) const
inline

Definition at line 626 of file inet.hh.

◆ bytes() [1/2]

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

Definition at line 642 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 640 of file inet.hh.

Referenced by options(), and payload().

◆ dport()

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

Definition at line 624 of file inet.hh.

◆ flags() [1/2]

uint8_t gem5::networking::TcpHdr::flags ( ) const
inline

Definition at line 628 of file inet.hh.

◆ flags() [2/2]

void gem5::networking::TcpHdr::flags ( uint8_t  _flags)
inline

Definition at line 635 of file inet.hh.

◆ off()

uint8_t gem5::networking::TcpHdr::off ( ) const
inline

Definition at line 627 of file inet.hh.

Referenced by options(), and size().

◆ options()

bool gem5::networking::TcpHdr::options ( std::vector< const TcpOpt * > &  vec) const

Definition at line 365 of file inet.cc.

References bytes(), data, len, gem5::networking::TcpOpt::len(), off(), and gem5::PowerISA::vec.

◆ payload() [1/2]

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

Definition at line 643 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

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

Definition at line 641 of file inet.hh.

References bytes(), and size().

◆ seq() [1/2]

uint32_t gem5::networking::TcpHdr::seq ( ) const
inline

Definition at line 625 of file inet.hh.

◆ seq() [2/2]

void gem5::networking::TcpHdr::seq ( uint32_t  _seq)
inline

Definition at line 634 of file inet.hh.

◆ size()

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

Definition at line 639 of file inet.hh.

References off().

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

◆ sport()

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

Definition at line 623 of file inet.hh.

◆ sum() [1/2]

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

Definition at line 630 of file inet.hh.

◆ sum() [2/2]

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

Definition at line 633 of file inet.hh.

References sum().

Referenced by sum().

◆ urp()

uint16_t gem5::networking::TcpHdr::urp ( ) const
inline

Definition at line 631 of file inet.hh.

◆ win()

uint16_t gem5::networking::TcpHdr::win ( ) const
inline

Definition at line 629 of file inet.hh.


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

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