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

#include <inet.hh>

Public Member Functions

 IpPtr ()
 
 IpPtr (const EthPacketPtr &ptr)
 
 IpPtr (const EthPtr &ptr)
 
 IpPtr (const IpPtr &ptr)
 
IpHdrget ()
 
IpHdroperator-> ()
 
IpHdroperator* ()
 
const IpHdrget () const
 
const IpHdroperator-> () const
 
const IpHdroperator* () const
 
const IpPtroperator= (const EthPacketPtr &ptr)
 
const IpPtroperator= (const EthPtr &ptr)
 
const IpPtroperator= (const IpPtr &ptr)
 
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)
 

Protected Attributes

EthPacketPtr p
 
bool eth_hdr_vlan
 

Friends

class TcpPtr
 
class UdpPtr
 

Detailed Description

Definition at line 281 of file inet.hh.

Constructor & Destructor Documentation

Net::IpPtr::IpPtr ( )
inline

Definition at line 304 of file inet.hh.

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

Definition at line 305 of file inet.hh.

References set().

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

Definition at line 306 of file inet.hh.

References Net::EthPtr::p, and set().

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

Definition at line 307 of file inet.hh.

Member Function Documentation

IpHdr* Net::IpPtr::get ( )
inline

Definition at line 309 of file inet.hh.

References eth_hdr_vlan, and p.

const IpHdr* Net::IpPtr::get ( ) const
inline

Definition at line 314 of file inet.hh.

References eth_hdr_vlan, and p.

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

Definition at line 328 of file inet.hh.

References eth_hdr_vlan.

Referenced by pstart().

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

Definition at line 327 of file inet.hh.

References p.

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

Definition at line 326 of file inet.hh.

References p.

IpHdr& Net::IpPtr::operator* ( )
inline

Definition at line 312 of file inet.hh.

const IpHdr& Net::IpPtr::operator* ( ) const
inline

Definition at line 318 of file inet.hh.

IpHdr* Net::IpPtr::operator-> ( )
inline

Definition at line 311 of file inet.hh.

const IpHdr* Net::IpPtr::operator-> ( ) const
inline

Definition at line 317 of file inet.hh.

const IpPtr& Net::IpPtr::operator= ( const EthPacketPtr ptr)
inline

Definition at line 320 of file inet.hh.

References set().

const IpPtr& Net::IpPtr::operator= ( const EthPtr ptr)
inline

Definition at line 321 of file inet.hh.

References Net::EthPtr::p, and set().

const IpPtr& Net::IpPtr::operator= ( const IpPtr ptr)
inline

Definition at line 322 of file inet.hh.

References p.

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

Definition at line 324 of file inet.hh.

References p.

EthPacketPtr Net::IpPtr::packet ( )
inline

Definition at line 325 of file inet.hh.

References p.

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

Definition at line 329 of file inet.hh.

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

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

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

Definition at line 289 of file inet.hh.

References eth_hdr_vlan, if(), Net::EthHdr::isVlan(), p, and Net::EthHdr::type().

Referenced by IpPtr(), and operator=().

Friends And Related Function Documentation

friend class TcpPtr
friend

Definition at line 284 of file inet.hh.

friend class UdpPtr
friend

Definition at line 285 of file inet.hh.

Member Data Documentation

bool Net::IpPtr::eth_hdr_vlan
protected

Definition at line 287 of file inet.hh.

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

EthPacketPtr Net::IpPtr::p
protected

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