INET Framework for OMNeT++/OMNEST
inet::RSVPPacket Class Reference

RSVP message common part. More...

#include <RSVPPacket.h>

Inheritance diagram for inet::RSVPPacket:
inet::RSVPPacket_Base inet::RSVPMessage inet::RSVPPathError_Base inet::RSVPPathMsg_Base inet::RSVPPathTear_Base inet::RSVPResvError_Base inet::RSVPResvMsg_Base inet::RSVPResvTear_Base inet::RSVPPathError inet::RSVPPathMsg inet::RSVPPathTear inet::RSVPResvError inet::RSVPResvMsg inet::RSVPResvTear

Public Member Functions

 RSVPPacket (const char *name=nullptr, int kind=0)
 
 RSVPPacket (const RSVPPacket &other)
 
RSVPPacketoperator= (const RSVPPacket &other)
 
virtual RSVPPacketdup () const override
 
IPv4Address getDestAddress ()
 
int getTunnelId ()
 
int getExTunnelId ()
 
int getSetupPri ()
 
int getHoldingPri ()
 
bool isInSession (SessionObj_t *s)
 
- Public Member Functions inherited from inet::RSVPPacket_Base
virtual ~RSVPPacket_Base ()
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual SessionObj_tgetSession ()
 
virtual const SessionObj_tgetSession () const
 
virtual void setSession (const SessionObj_t &session)
 
virtual bool getChecksumValid () const
 
virtual void setChecksumValid (bool checksumValid)
 
- Public Member Functions inherited from inet::RSVPMessage
 RSVPMessage (const char *name=nullptr, short kind=0)
 
 RSVPMessage (const RSVPMessage &other)
 
virtual ~RSVPMessage ()
 
RSVPMessageoperator= (const RSVPMessage &other)
 
virtual int getRsvpKind () const
 
virtual void setRsvpKind (int rsvpKind)
 

Additional Inherited Members

- Protected Member Functions inherited from inet::RSVPPacket_Base
bool operator== (const RSVPPacket_Base &)
 
 RSVPPacket_Base (const char *name=nullptr, short kind=0)
 
 RSVPPacket_Base (const RSVPPacket_Base &other)
 
RSVPPacket_Baseoperator= (const RSVPPacket_Base &other)
 
- Protected Member Functions inherited from inet::RSVPMessage
bool operator== (const RSVPMessage &)
 
- Protected Attributes inherited from inet::RSVPPacket_Base
SessionObj_t session
 
bool checksumValid
 
- Protected Attributes inherited from inet::RSVPMessage
int rsvpKind
 

Detailed Description

RSVP message common part.

This class adds convenience get() and set() methods to the generated base class, but no extra data.

Constructor & Destructor Documentation

inet::RSVPPacket::RSVPPacket ( const char *  name = nullptr,
int  kind = 0 
)
inline
34 : RSVPPacket_Base(name, RSVP_TRAFFIC) { this->rsvpKind = kind; }
int rsvpKind
Definition: RSVPPacket_m.h:60
#define RSVP_TRAFFIC
Definition: RSVPPacket.h:23
RSVPPacket_Base(const char *name=nullptr, short kind=0)
inet::RSVPPacket::RSVPPacket ( const RSVPPacket other)
inline
35 : RSVPPacket_Base(other) {}
RSVPPacket_Base(const char *name=nullptr, short kind=0)

Member Function Documentation

virtual RSVPPacket* inet::RSVPPacket::dup ( ) const
inlineoverridevirtual
IPv4Address inet::RSVPPacket::getDestAddress ( )
inline

Referenced by inet::RSVP::createPSB().

39 { return getSession().DestAddress; }
virtual SessionObj_t & getSession()
IPv4Address DestAddress
Definition: IntServ_m.h:51
int inet::RSVPPacket::getExTunnelId ( )
inline
41 { return getSession().Extended_Tunnel_Id; }
int Extended_Tunnel_Id
Definition: IntServ_m.h:50
virtual SessionObj_t & getSession()
int inet::RSVPPacket::getHoldingPri ( )
inline
43 { return getSession().holdingPri; }
virtual SessionObj_t & getSession()
int holdingPri
Definition: IntServ_m.h:53
int inet::RSVPPacket::getSetupPri ( )
inline
42 { return getSession().setupPri; }
int setupPri
Definition: IntServ_m.h:52
virtual SessionObj_t & getSession()
int inet::RSVPPacket::getTunnelId ( )
inline
40 { return getSession().Tunnel_Id; }
int Tunnel_Id
Definition: IntServ_m.h:49
virtual SessionObj_t & getSession()
bool inet::RSVPPacket::isInSession ( SessionObj_t s)
inline

Referenced by inet::RSVP::processResvMsg().

45  {
46  return getSession().DestAddress == s->DestAddress &&
47  getSession().Tunnel_Id == s->Tunnel_Id &&
48  getSession().Extended_Tunnel_Id == s->Extended_Tunnel_Id;
49  }
int Tunnel_Id
Definition: IntServ_m.h:49
int Extended_Tunnel_Id
Definition: IntServ_m.h:50
virtual SessionObj_t & getSession()
IPv4Address DestAddress
Definition: IntServ_m.h:51
value< double, units::s > s
Definition: Units.h:1049
RSVPPacket& inet::RSVPPacket::operator= ( const RSVPPacket other)
inline
36 { RSVPPacket_Base::operator=(other); return *this; }
RSVPPacket_Base & operator=(const RSVPPacket_Base &other)

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