gem5  v20.1.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Net::IpPtr Class Reference

#include <inet.hh>

Public Member Functions

IpHdrget ()
 
IpHdroperator-> ()
 
IpHdroperator* ()
 
const IpPtroperator= (const EthPacketPtr &ptr)
 
const IpPtroperator= (const EthPtr &ptr)
 
const IpPtroperator= (const IpPtr &ptr)
 
 IpPtr ()
 
 IpPtr (const EthPacketPtr &ptr)
 
 IpPtr (const EthPtr &ptr)
 
 IpPtr (const IpPtr &ptr)
 
const IpHdrget () const
 
const IpHdroperator-> () const
 
const IpHdroperator* () const
 
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 351 of file inet.hh.

Member Function Documentation

◆ get()

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

Definition at line 384 of file inet.hh.

References eth_hdr_vlan, and p.

Referenced by operator*(), operator->(), and pstart().

◆ operator*()

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

Definition at line 387 of file inet.hh.

References get().

◆ operator->()

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

Definition at line 386 of file inet.hh.

References get().

◆ operator=() [1/3]

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

Definition at line 400 of file inet.hh.

References set().

◆ operator=() [2/3]

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

Definition at line 401 of file inet.hh.

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

◆ operator=() [3/3]

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

Definition at line 402 of file inet.hh.

References p.

◆ set()

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

Definition at line 359 of file inet.hh.

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

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

Friends And Related Function Documentation

◆ TcpPtr

friend class TcpPtr
friend

Definition at line 354 of file inet.hh.

◆ UdpPtr

friend class UdpPtr
friend

Definition at line 355 of file inet.hh.

Member Data Documentation

◆ eth_hdr_vlan

bool Net::IpPtr::eth_hdr_vlan
protected

Definition at line 357 of file inet.hh.

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

◆ p

EthPacketPtr Net::IpPtr::p
protected

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

Generated on Wed Sep 30 2020 14:03:07 for gem5 by doxygen 1.8.17