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

#include <inet.hh>

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

Member Function Documentation

◆ ack()

uint32_t Net::TcpHdr::ack ( ) const
inline

Definition at line 617 of file inet.hh.

◆ bytes() [1/2]

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

Definition at line 633 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 631 of file inet.hh.

Referenced by payload().

◆ dport()

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

Definition at line 615 of file inet.hh.

◆ flags() [1/2]

uint8_t Net::TcpHdr::flags ( ) const
inline

Definition at line 619 of file inet.hh.

◆ flags() [2/2]

void Net::TcpHdr::flags ( uint8_t  _flags)
inline

Definition at line 626 of file inet.hh.

◆ off()

uint8_t Net::TcpHdr::off ( ) const
inline

Definition at line 618 of file inet.hh.

Referenced by size().

◆ options()

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

Definition at line 355 of file inet.cc.

References data, ArmISA::len, and Net::TcpOpt::len().

◆ payload() [1/2]

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

Definition at line 634 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

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

Definition at line 632 of file inet.hh.

References bytes(), and size().

◆ seq() [1/2]

uint32_t Net::TcpHdr::seq ( ) const
inline

Definition at line 616 of file inet.hh.

◆ seq() [2/2]

void Net::TcpHdr::seq ( uint32_t  _seq)
inline

Definition at line 625 of file inet.hh.

◆ size()

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

Definition at line 630 of file inet.hh.

References off().

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

◆ sport()

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

Definition at line 614 of file inet.hh.

◆ sum() [1/2]

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

Definition at line 621 of file inet.hh.

◆ sum() [2/2]

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

Definition at line 624 of file inet.hh.

References sum().

Referenced by sum().

◆ urp()

uint16_t Net::TcpHdr::urp ( ) const
inline

Definition at line 622 of file inet.hh.

◆ win()

uint16_t Net::TcpHdr::win ( ) const
inline

Definition at line 620 of file inet.hh.


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

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