gem5  v22.1.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
gem5::networking::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 357 of file inet.hh.

Member Function Documentation

◆ get()

IpHdr* gem5::networking::IpPtr::get ( )
inline

Definition at line 390 of file inet.hh.

References eth_hdr_vlan, and p.

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

◆ operator*()

IpHdr& gem5::networking::IpPtr::operator* ( )
inline

Definition at line 393 of file inet.hh.

References get().

◆ operator->()

IpHdr* gem5::networking::IpPtr::operator-> ( )
inline

Definition at line 392 of file inet.hh.

References get().

◆ operator=() [1/3]

const IpPtr& gem5::networking::IpPtr::operator= ( const EthPacketPtr ptr)
inline

Definition at line 406 of file inet.hh.

References set().

◆ operator=() [2/3]

const IpPtr& gem5::networking::IpPtr::operator= ( const EthPtr ptr)
inline

Definition at line 407 of file inet.hh.

References gem5::networking::EthPtr::p, and set().

◆ operator=() [3/3]

const IpPtr& gem5::networking::IpPtr::operator= ( const IpPtr ptr)
inline

Definition at line 408 of file inet.hh.

References p.

◆ set()

void gem5::networking::IpPtr::set ( const EthPacketPtr ptr)
inlineprotected

Definition at line 365 of file inet.hh.

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

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

Friends And Related Function Documentation

◆ TcpPtr

friend class TcpPtr
friend

Definition at line 360 of file inet.hh.

◆ UdpPtr

friend class UdpPtr
friend

Definition at line 361 of file inet.hh.

Member Data Documentation

◆ eth_hdr_vlan

bool gem5::networking::IpPtr::eth_hdr_vlan
protected

Definition at line 363 of file inet.hh.

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

◆ p

EthPacketPtr gem5::networking::IpPtr::p
protected

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

Generated on Wed Dec 21 2022 10:24:17 for gem5 by doxygen 1.9.1