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

#include <inet.hh>

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

Member Function Documentation

◆ bytes() [1/2]

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

Definition at line 347 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 345 of file inet.hh.

Referenced by Net::cksum(), and payload().

◆ dst()

uint32_t Net::IpHdr::dst ( ) const
inline

Definition at line 336 of file inet.hh.

◆ frag_flags()

uint16_t Net::IpHdr::frag_flags ( ) const
inline

Definition at line 330 of file inet.hh.

◆ frag_off()

uint16_t Net::IpHdr::frag_off ( ) const
inline

Definition at line 331 of file inet.hh.

◆ hlen()

uint8_t Net::IpHdr::hlen ( ) const
inline

Definition at line 326 of file inet.hh.

Referenced by Net::cksum(), and size().

◆ id() [1/2]

uint16_t Net::IpHdr::id ( ) const
inline

Definition at line 329 of file inet.hh.

◆ id() [2/2]

void Net::IpHdr::id ( uint16_t  _id)
inline

Definition at line 339 of file inet.hh.

◆ len() [1/2]

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

Definition at line 328 of file inet.hh.

◆ len() [2/2]

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

Definition at line 340 of file inet.hh.

◆ options()

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

Definition at line 258 of file inet.cc.

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

◆ payload() [1/2]

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

Definition at line 348 of file inet.hh.

References bytes(), and size().

◆ payload() [2/2]

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

Definition at line 346 of file inet.hh.

References bytes(), and size().

◆ proto()

uint8_t Net::IpHdr::proto ( ) const
inline

Definition at line 333 of file inet.hh.

Referenced by Net::TcpPtr::set(), and Net::UdpPtr::set().

◆ size()

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

Definition at line 344 of file inet.hh.

References hlen().

Referenced by payload().

◆ src()

uint32_t Net::IpHdr::src ( ) const
inline

Definition at line 335 of file inet.hh.

◆ sum() [1/2]

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

Definition at line 334 of file inet.hh.

◆ sum() [2/2]

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

Definition at line 338 of file inet.hh.

References sum().

Referenced by sum().

◆ tos()

uint8_t Net::IpHdr::tos ( ) const
inline

Definition at line 327 of file inet.hh.

◆ ttl()

uint8_t Net::IpHdr::ttl ( ) const
inline

Definition at line 332 of file inet.hh.

◆ version()

uint8_t Net::IpHdr::version ( ) const
inline

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