gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Net::UdpPtr Class Reference

#include <inet.hh>

Public Member Functions

 UdpPtr ()
 
 UdpPtr (const IpPtr &ptr)
 
 UdpPtr (const Ip6Ptr &ptr)
 
 UdpPtr (const UdpPtr &ptr)
 
UdpHdrget ()
 
UdpHdroperator-> ()
 
UdpHdroperator* ()
 
const UdpHdrget () const
 
const UdpHdroperator-> () const
 
const UdpHdroperator* () const
 
const UdpPtroperator= (const IpPtr &i)
 
const UdpPtroperator= (const UdpPtr &t)
 
const EthPacketPtr packet () const
 
EthPacketPtr packet ()
 
bool operator! () const
 
 operator bool () const
 
int off () const
 
int pstart () const
 

Protected Member Functions

void set (const EthPacketPtr &ptr, int offset)
 
void set (const IpPtr &ptr)
 
void set (const Ip6Ptr &ptr)
 

Protected Attributes

EthPacketPtr p
 
int _off
 

Detailed Description

Definition at line 631 of file inet.hh.

Constructor & Destructor Documentation

Net::UdpPtr::UdpPtr ( )
inline

Definition at line 654 of file inet.hh.

Net::UdpPtr::UdpPtr ( const IpPtr ptr)
inline

Definition at line 655 of file inet.hh.

References set().

Net::UdpPtr::UdpPtr ( const Ip6Ptr ptr)
inline

Definition at line 656 of file inet.hh.

References set().

Net::UdpPtr::UdpPtr ( const UdpPtr ptr)
inline

Definition at line 657 of file inet.hh.

Member Function Documentation

UdpHdr* Net::UdpPtr::get ( )
inline

Definition at line 659 of file inet.hh.

References _off, and p.

const UdpHdr* Net::UdpPtr::get ( ) const
inline

Definition at line 663 of file inet.hh.

References _off, and p.

int Net::UdpPtr::off ( ) const
inline

Definition at line 675 of file inet.hh.

References _off.

Referenced by pstart().

Net::UdpPtr::operator bool ( ) const
inline

Definition at line 674 of file inet.hh.

References p.

bool Net::UdpPtr::operator! ( ) const
inline

Definition at line 673 of file inet.hh.

References p.

UdpHdr& Net::UdpPtr::operator* ( )
inline

Definition at line 661 of file inet.hh.

const UdpHdr& Net::UdpPtr::operator* ( ) const
inline

Definition at line 665 of file inet.hh.

UdpHdr* Net::UdpPtr::operator-> ( )
inline

Definition at line 660 of file inet.hh.

const UdpHdr* Net::UdpPtr::operator-> ( ) const
inline

Definition at line 664 of file inet.hh.

const UdpPtr& Net::UdpPtr::operator= ( const IpPtr i)
inline

Definition at line 667 of file inet.hh.

References set().

const UdpPtr& Net::UdpPtr::operator= ( const UdpPtr t)
inline

Definition at line 668 of file inet.hh.

References _off, p, and set().

const EthPacketPtr Net::UdpPtr::packet ( ) const
inline

Definition at line 671 of file inet.hh.

References p.

Referenced by Net::cksum().

EthPacketPtr Net::UdpPtr::packet ( )
inline

Definition at line 672 of file inet.hh.

References p.

int Net::UdpPtr::pstart ( ) const
inline

Definition at line 676 of file inet.hh.

References off(), and X86ISA::size().

Referenced by Net::hsplit().

void Net::UdpPtr::set ( const EthPacketPtr ptr,
int  offset 
)
inlineprotected

Definition at line 637 of file inet.hh.

References _off, ArmISA::offset, and p.

Referenced by operator=(), set(), and UdpPtr().

void Net::UdpPtr::set ( const IpPtr ptr)
inlineprotected

Definition at line 638 of file inet.hh.

References Net::IpPtr::p, Net::IpHdr::proto(), Net::IpPtr::pstart(), and set().

void Net::UdpPtr::set ( const Ip6Ptr ptr)
inlineprotected

Definition at line 645 of file inet.hh.

References Net::Ip6Ptr::p, Net::Ip6Hdr::proto(), Net::Ip6Ptr::pstart(), and set().

Member Data Documentation

int Net::UdpPtr::_off
protected

Definition at line 635 of file inet.hh.

Referenced by get(), off(), operator=(), and set().

EthPacketPtr Net::UdpPtr::p
protected

Definition at line 634 of file inet.hh.

Referenced by get(), operator bool(), operator!(), operator=(), packet(), and set().


The documentation for this class was generated from the following file:

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