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

#include <inet.hh>

Inheritance diagram for gem5::networking::IpHdr:

Public Member Functions

uint8_t version () const
 
uint8_t hlen () const
 
uint8_t tos () const
 
uint16_t len () const
 
uint16_t id () const
 
uint16_t frag_flags () const
 
uint16_t frag_off () const
 
uint8_t ttl () const
 
uint8_t proto () const
 
uint16_t sum () const
 
uint32_t src () const
 
uint32_t dst () const
 
void sum (uint16_t sum)
 
void id (uint16_t _id)
 
void len (uint16_t _len)
 
bool options (std::vector< const IpOpt * > &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 329 of file inet.hh.

Member Function Documentation

◆ bytes() [1/2]

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

Definition at line 353 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 351 of file inet.hh.

Referenced by gem5::networking::cksum(), options(), and payload().

◆ dst()

uint32_t gem5::networking::IpHdr::dst ( ) const
inline

Definition at line 342 of file inet.hh.

◆ frag_flags()

uint16_t gem5::networking::IpHdr::frag_flags ( ) const
inline

Definition at line 336 of file inet.hh.

◆ frag_off()

uint16_t gem5::networking::IpHdr::frag_off ( ) const
inline

Definition at line 337 of file inet.hh.

◆ hlen()

uint8_t gem5::networking::IpHdr::hlen ( ) const
inline

Definition at line 332 of file inet.hh.

Referenced by gem5::networking::cksum(), options(), and size().

◆ id() [1/2]

uint16_t gem5::networking::IpHdr::id ( ) const
inline

Definition at line 335 of file inet.hh.

◆ id() [2/2]

void gem5::networking::IpHdr::id ( uint16_t  _id)
inline

Definition at line 345 of file inet.hh.

◆ len() [1/2]

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

Definition at line 334 of file inet.hh.

Referenced by options().

◆ len() [2/2]

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

Definition at line 346 of file inet.hh.

◆ options()

bool gem5::networking::IpHdr::options ( std::vector< const IpOpt * > &  vec) const

Definition at line 262 of file inet.cc.

References bytes(), data, hlen(), len(), gem5::networking::IpOpt::len(), and gem5::PowerISA::vec.

◆ payload() [1/2]

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

Definition at line 354 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

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

Definition at line 352 of file inet.hh.

References bytes(), and size().

◆ proto()

uint8_t gem5::networking::IpHdr::proto ( ) const
inline

Definition at line 339 of file inet.hh.

Referenced by gem5::networking::TcpPtr::set(), and gem5::networking::UdpPtr::set().

◆ size()

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

Definition at line 350 of file inet.hh.

References hlen().

Referenced by payload().

◆ src()

uint32_t gem5::networking::IpHdr::src ( ) const
inline

Definition at line 341 of file inet.hh.

◆ sum() [1/2]

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

Definition at line 340 of file inet.hh.

◆ sum() [2/2]

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

Definition at line 344 of file inet.hh.

References sum().

Referenced by sum().

◆ tos()

uint8_t gem5::networking::IpHdr::tos ( ) const
inline

Definition at line 333 of file inet.hh.

◆ ttl()

uint8_t gem5::networking::IpHdr::ttl ( ) const
inline

Definition at line 338 of file inet.hh.

◆ version()

uint8_t gem5::networking::IpHdr::version ( ) const
inline

Definition at line 331 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