INET Framework for OMNeT++/OMNEST
inet::bgp::BGPOpenMessage Class Reference

Class generated from inet/routing/bgpv4/BGPMessage/BGPOpen.msg:64 by nedtool. More...

#include <BGPOpen_m.h>

Inheritance diagram for inet::bgp::BGPOpenMessage:
inet::bgp::BGPHeader

Public Member Functions

 BGPOpenMessage (const char *name=nullptr, short kind=0)
 
 BGPOpenMessage (const BGPOpenMessage &other)
 
virtual ~BGPOpenMessage ()
 
BGPOpenMessageoperator= (const BGPOpenMessage &other)
 
virtual BGPOpenMessagedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual char version () const
 
virtual void setVersion (char version)
 
virtual unsigned short myAS () const
 
virtual void setMyAS (unsigned short myAS)
 
virtual ::omnetpp::simtime_t holdTime () const
 
virtual void setHoldTime (::omnetpp::simtime_t holdTime)
 
virtual IPv4AddressBGPIdentifier ()
 
virtual const IPv4AddressBGPIdentifier () const
 
virtual void setBGPIdentifier (const IPv4Address &BGPIdentifier)
 
virtual void setOptionalParametersArraySize (unsigned int size)
 
virtual unsigned int optionalParametersArraySize () const
 
virtual BGPOptionalParametersoptionalParameters (unsigned int k)
 
virtual const BGPOptionalParametersoptionalParameters (unsigned int k) const
 
virtual void setOptionalParameters (unsigned int k, const BGPOptionalParameters &optionalParameters)
 
- Public Member Functions inherited from inet::bgp::BGPHeader
 BGPHeader (const char *name=nullptr, short kind=0)
 
 BGPHeader (const BGPHeader &other)
 
virtual ~BGPHeader ()
 
BGPHeaderoperator= (const BGPHeader &other)
 
virtual char getType () const
 
virtual void setType (char type)
 

Protected Member Functions

bool operator== (const BGPOpenMessage &)
 
- Protected Member Functions inherited from inet::bgp::BGPHeader
bool operator== (const BGPHeader &)
 

Protected Attributes

char version_var
 
unsigned short myAS_var
 
::omnetpp::simtime_t holdTime_var
 
IPv4Address BGPIdentifier_var
 
BGPOptionalParametersoptionalParameters_var
 
unsigned int optionalParameters_arraysize
 
- Protected Attributes inherited from inet::bgp::BGPHeader
char type
 

Private Member Functions

void copy (const BGPOpenMessage &other)
 

Detailed Description

Class generated from inet/routing/bgpv4/BGPMessage/BGPOpen.msg:64 by nedtool.

//
// Represents a BGPv4 OPEN message.
//
// Fields modelled:
// - Version: 1 octet (BGP version)
// - My Autonomous system: 2 octets  (AS of the sender)
// - Hold Time: 2 octets (nbr de secondes que l'emetteur propose pour le compteur de renetue)
// - BGP Identifier: 4 octets
// - Optional Param Length: 1 octet (if = 0, no optional parameters)
// - Optional Parameters:
//    - Parameter Type
//    - Parameter Length
//    - Parameter Values (variable size)
//    - Auth code
//    - Authentication Data
//
packet BGPOpenMessage extends BGPHeader
{
    @omitGetVerb(true);
    @fieldNameSuffix("_var");
    type = BGP_OPEN;
    byteLength = BGP_HEADER_OCTETS + BGP_OPEN_OCTETS;
    char version = 4;
    unsigned short myAS;
    simtime_t holdTime;
    IPv4Address BGPIdentifier;
    BGPOptionalParameters optionalParameters[];
}

Constructor & Destructor Documentation

inet::bgp::BGPOpenMessage::BGPOpenMessage ( const char *  name = nullptr,
short  kind = 0 
)
inet::bgp::BGPOpenMessage::BGPOpenMessage ( const BGPOpenMessage other)
virtual inet::bgp::BGPOpenMessage::~BGPOpenMessage ( )
virtual

Member Function Documentation

virtual IPv4Address& inet::bgp::BGPOpenMessage::BGPIdentifier ( )
virtual
virtual const IPv4Address& inet::bgp::BGPOpenMessage::BGPIdentifier ( ) const
inlinevirtual

Referenced by BGPIdentifier().

144 {return const_cast<BGPOpenMessage*>(this)->BGPIdentifier();}
virtual IPv4Address & BGPIdentifier()
BGPOpenMessage(const char *name=nullptr, short kind=0)
void inet::bgp::BGPOpenMessage::copy ( const BGPOpenMessage other)
private
virtual BGPOpenMessage* inet::bgp::BGPOpenMessage::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::bgp::BGPHeader.

132 {return new BGPOpenMessage(*this);}
BGPOpenMessage(const char *name=nullptr, short kind=0)
virtual ::omnetpp::simtime_t inet::bgp::BGPOpenMessage::holdTime ( ) const
virtual unsigned short inet::bgp::BGPOpenMessage::myAS ( ) const
virtual
BGPOpenMessage& inet::bgp::BGPOpenMessage::operator= ( const BGPOpenMessage other)
bool inet::bgp::BGPOpenMessage::operator== ( const BGPOpenMessage )
protected
virtual BGPOptionalParameters& inet::bgp::BGPOpenMessage::optionalParameters ( unsigned int  k)
virtual
virtual const BGPOptionalParameters& inet::bgp::BGPOpenMessage::optionalParameters ( unsigned int  k) const
inlinevirtual

Referenced by optionalParameters().

149 {return const_cast<BGPOpenMessage*>(this)->optionalParameters(k);}
BGPOpenMessage(const char *name=nullptr, short kind=0)
virtual BGPOptionalParameters & optionalParameters(unsigned int k)
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::bgp::BGPOpenMessage::optionalParametersArraySize ( ) const
virtual
virtual void inet::bgp::BGPOpenMessage::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::bgp::BGPHeader.

Referenced by inet::bgp::doParsimPacking().

virtual void inet::bgp::BGPOpenMessage::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::bgp::BGPHeader.

Referenced by inet::bgp::doParsimUnpacking().

virtual void inet::bgp::BGPOpenMessage::setBGPIdentifier ( const IPv4Address BGPIdentifier)
virtual
virtual void inet::bgp::BGPOpenMessage::setHoldTime ( ::omnetpp::simtime_t  holdTime)
virtual
virtual void inet::bgp::BGPOpenMessage::setMyAS ( unsigned short  myAS)
virtual
virtual void inet::bgp::BGPOpenMessage::setOptionalParameters ( unsigned int  k,
const BGPOptionalParameters optionalParameters 
)
virtual
virtual void inet::bgp::BGPOpenMessage::setOptionalParametersArraySize ( unsigned int  size)
virtual
virtual void inet::bgp::BGPOpenMessage::setVersion ( char  version)
virtual
virtual char inet::bgp::BGPOpenMessage::version ( ) const
virtual

Member Data Documentation

IPv4Address inet::bgp::BGPOpenMessage::BGPIdentifier_var
protected
::omnetpp::simtime_t inet::bgp::BGPOpenMessage::holdTime_var
protected
unsigned short inet::bgp::BGPOpenMessage::myAS_var
protected
unsigned int inet::bgp::BGPOpenMessage::optionalParameters_arraysize
protected
BGPOptionalParameters* inet::bgp::BGPOpenMessage::optionalParameters_var
protected
char inet::bgp::BGPOpenMessage::version_var
protected

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