gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 253 of file inet.hh.

Member Function Documentation

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

Definition at line 275 of file inet.hh.

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

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

Definition at line 277 of file inet.hh.

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

Definition at line 266 of file inet.hh.

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

Definition at line 260 of file inet.hh.

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

Definition at line 261 of file inet.hh.

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

Definition at line 256 of file inet.hh.

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

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

Definition at line 269 of file inet.hh.

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

Definition at line 258 of file inet.hh.

Referenced by Net::__tu_cksum(), and IGbE::TxDescCache::pktComplete().

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

Definition at line 270 of file inet.hh.

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

Definition at line 261 of file inet.cc.

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

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

Definition at line 276 of file inet.hh.

References bytes(), and size().

Referenced by Net::__tu_cksum().

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

Definition at line 278 of file inet.hh.

References bytes(), and size().

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

Definition at line 263 of file inet.hh.

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

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

Definition at line 274 of file inet.hh.

References hlen().

Referenced by payload().

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

Definition at line 265 of file inet.hh.

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

Definition at line 264 of file inet.hh.

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

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

Definition at line 268 of file inet.hh.

References sum().

Referenced by sum().

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

Definition at line 257 of file inet.hh.

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

Definition at line 262 of file inet.hh.

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

Definition at line 255 of file inet.hh.


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

Generated on Fri Jun 9 2017 13:04:34 for gem5 by doxygen 1.8.6