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

#include <inet.hh>

Inheritance diagram for Net::Ip6Hdr:

Public Member Functions

uint8_t version () const
 
uint32_t flow () const
 
uint16_t plen () const
 
uint16_t hlen () const
 
uint8_t nxt () const
 
uint8_t hlim () const
 
const uint8_t * src () const
 
const uint8_t * dst () const
 
int extensionLength () const
 
const Ip6OptgetExt (uint8_t ext) const
 
const Ip6OptfragmentExt () const
 
const Ip6OptrtTypeExt () const
 
const Ip6OptdstOptExt () const
 
uint8_t proto () const
 
void plen (uint16_t _plen)
 
int size () const
 
const uint8_t * bytes () const
 
const uint8_t * payload () const
 
uint8_t * bytes ()
 
uint8_t * payload ()
 

Detailed Description

Definition at line 451 of file inet.hh.

Member Function Documentation

◆ bytes() [1/2]

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

Definition at line 476 of file inet.hh.

◆ bytes() [2/2]

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

Definition at line 473 of file inet.hh.

Referenced by payload().

◆ dst()

const uint8_t* Net::Ip6Hdr::dst ( ) const
inline

Definition at line 461 of file inet.hh.

◆ dstOptExt()

const Ip6Opt* Net::Ip6Hdr::dstOptExt ( ) const
inline

Definition at line 467 of file inet.hh.

References getExt().

◆ extensionLength()

int Net::Ip6Hdr::extensionLength ( ) const

Definition at line 289 of file inet.cc.

References data, ArmISA::ext, IP6_EXTENSION, and ArmISA::len.

Referenced by payload(), and size().

◆ flow()

uint32_t Net::Ip6Hdr::flow ( ) const
inline

Definition at line 454 of file inet.hh.

◆ fragmentExt()

const Ip6Opt* Net::Ip6Hdr::fragmentExt ( ) const
inline

Definition at line 465 of file inet.hh.

References getExt().

◆ getExt()

const Ip6Opt * Net::Ip6Hdr::getExt ( uint8_t  ext) const

Definition at line 312 of file inet.cc.

References data, IP6_EXTENSION, Net::Ip6Opt::len(), and Net::Ip6Opt::nxt().

Referenced by dstOptExt(), fragmentExt(), and rtTypeExt().

◆ hlen()

uint16_t Net::Ip6Hdr::hlen ( ) const
inline

Definition at line 456 of file inet.hh.

◆ hlim()

uint8_t Net::Ip6Hdr::hlim ( ) const
inline

Definition at line 458 of file inet.hh.

◆ nxt()

uint8_t Net::Ip6Hdr::nxt ( ) const
inline

Definition at line 457 of file inet.hh.

◆ payload() [1/2]

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

Definition at line 477 of file inet.hh.

References bytes(), and extensionLength().

◆ payload() [2/2]

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

Definition at line 474 of file inet.hh.

References bytes(), and extensionLength().

◆ plen() [1/2]

uint16_t Net::Ip6Hdr::plen ( ) const
inline

Definition at line 455 of file inet.hh.

◆ plen() [2/2]

void Net::Ip6Hdr::plen ( uint16_t  _plen)
inline

Definition at line 470 of file inet.hh.

◆ proto()

uint8_t Net::Ip6Hdr::proto ( ) const

Definition at line 338 of file inet.cc.

References data, ArmISA::ext, and IP6_EXTENSION.

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

◆ rtTypeExt()

const Ip6Opt* Net::Ip6Hdr::rtTypeExt ( ) const
inline

Definition at line 466 of file inet.hh.

References getExt().

◆ size()

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

Definition at line 472 of file inet.hh.

References extensionLength().

Referenced by Net::Ip6Ptr::pstart().

◆ src()

const uint8_t* Net::Ip6Hdr::src ( ) const
inline

Definition at line 460 of file inet.hh.

◆ version()

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

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