ArtsBgp4Attribute


[ libArts | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class ArtsBgp4Attribute

{

public:
ArtsBgp4Attribute();
~ArtsBgp4Attribute();
uint8_t Flags() const;
uint8_t Flags(uint8_t flags);
uint8_t Type() const;
uint8_t Type(uint8_t attrType);
uint16_t Length() const;
uint16_t Length(uint16_t length);
uint8_t Origin() const;
uint8_t Origin(uint8_t origin);
const ArtsBgp4AsPathAttribute * AsPath() const;
AsPath(const ArtsBgp4AsPathAttribute & asPath);
const ArtsBgp4Prefix * NextHop() const;
const ArtsBgp4Prefix * NextHop(const ArtsBgp4Prefix & nextHop);
uint32_t MED() const;
uint32_t MED(uint32_t med);
uint32_t LocalPref() const;
uint32_t LocalPref(uint32_t localPref);
const ArtsBgp4AggregatorAttribute * Aggregator() const;
Aggregator(const ArtsBgp4AggregatorAttribute & aggregator);
const deque<uint32_t> * Community() const;
const deque<uint32_t> * Community(const deque<uint32_t> & community);
const ArtsBgp4DPAttribute * DP() const;
const ArtsBgp4DPAttribute * DP(const ArtsBgp4DPAttribute & dp);
void DeleteValue();
protected:
}; // ArtsBgp4Attribute

Back to the top of ArtsBgp4Attribute


DESCRIPTION


---------------------------------------------------------------------------
class ArtsBgp4Attribute
---------------------------------------------------------------------------
This class abstracts a BGP4 attribute. This is a container class for a discriminate union that lets us store any type of BGP4 attribute from the set of supported BGP attributes (all the required attributes plus community, DPA, Aggregator and MED). Note that this class does *not* abstract any 0-length attributes like Atomic Aggregate.
---------------------------------------------------------------------------

Back to the top of ArtsBgp4Attribute


ArtsBgp4Attribute();


-------------------------------------------------------------------------
ArtsBgp4Attribute()
.........................................................................
constructor
-------------------------------------------------------------------------

  ArtsBgp4Attribute();

Back to the top of ArtsBgp4Attribute


~ArtsBgp4Attribute();


-------------------------------------------------------------------------
~ArtsBgp4Attribute()
.........................................................................
destructor
-------------------------------------------------------------------------

  ~ArtsBgp4Attribute();

Back to the top of ArtsBgp4Attribute


uint8_t Flags() const;


-------------------------------------------------------------------------
uint8_t Flags() const
.........................................................................
Returns the flags in the attribute.
-------------------------------------------------------------------------

  uint8_t Flags() const;

Back to the top of ArtsBgp4Attribute


uint8_t Flags(uint8_t flags);


-------------------------------------------------------------------------
uint8_t Flags(uint8_t flags)
.........................................................................
Sets and returns the flags in the attribute.
-------------------------------------------------------------------------

  uint8_t Flags(uint8_t flags);

Back to the top of ArtsBgp4Attribute


uint8_t Type() const;


-------------------------------------------------------------------------
uint8_t Type() const
.........................................................................
Returns the type of the attribute (Bgp4_Attribute_NextHop, Bgp4_Attribute_Community, ...).
-------------------------------------------------------------------------

  uint8_t Type() const;

Back to the top of ArtsBgp4Attribute


uint8_t Type(uint8_t attrType);


-------------------------------------------------------------------------
uint8_t Type(uint8_t attrType)
.........................................................................
Sets and returns the type of the attribute (Bgp4_Attribute_NextHop, Bgp4_Attribute_Community, ...).
-------------------------------------------------------------------------

  uint8_t Type(uint8_t attrType);

Back to the top of ArtsBgp4Attribute


uint16_t Length() const;


-------------------------------------------------------------------------
uint16_t Length() const
.........................................................................
Returns the attribute length. Note this is an attribute-type dependent value.
-------------------------------------------------------------------------

  uint16_t Length() const;

Back to the top of ArtsBgp4Attribute


uint16_t Length(uint16_t length);


-------------------------------------------------------------------------
uint16_t Length(uint16_t length)
.........................................................................

-------------------------------------------------------------------------

  uint16_t Length(uint16_t length);

Back to the top of ArtsBgp4Attribute


uint8_t Origin() const;


-------------------------------------------------------------------------
uint8_t Origin() const
.........................................................................

-------------------------------------------------------------------------

  uint8_t Origin() const;

Back to the top of ArtsBgp4Attribute


uint8_t Origin(uint8_t origin);


-------------------------------------------------------------------------
uint8_t Origin(uint8_t origin)
.........................................................................

-------------------------------------------------------------------------

  uint8_t Origin(uint8_t origin);

Back to the top of ArtsBgp4Attribute


const ArtsBgp4AsPathAttribute * AsPath() const;


-------------------------------------------------------------------------
const ArtsBgp4AsPathAttribute * AsPath() const
.........................................................................

-------------------------------------------------------------------------

  const ArtsBgp4AsPathAttribute * AsPath() const;

Back to the top of ArtsBgp4Attribute


AsPath(const ArtsBgp4AsPathAttribute & asPath);

No documentation available.

  AsPath(const ArtsBgp4AsPathAttribute & asPath);

Back to the top of ArtsBgp4Attribute


const ArtsBgp4Prefix * NextHop() const;


-------------------------------------------------------------------------
const ArtsBgp4Prefix * NextHop() const
.........................................................................

-------------------------------------------------------------------------

  const ArtsBgp4Prefix * NextHop() const;

Back to the top of ArtsBgp4Attribute


const ArtsBgp4Prefix * NextHop(const ArtsBgp4Prefix & nextHop);


-------------------------------------------------------------------------
const ArtsBgp4Prefix * NextHop(const ArtsBgp4Prefix & nextHop)
.........................................................................

-------------------------------------------------------------------------

  const ArtsBgp4Prefix * NextHop(const ArtsBgp4Prefix & nextHop);

Back to the top of ArtsBgp4Attribute


uint32_t MED() const;


-------------------------------------------------------------------------
uint32_t MED() const
.........................................................................

-------------------------------------------------------------------------

  uint32_t MED() const;

Back to the top of ArtsBgp4Attribute


uint32_t MED(uint32_t med);


-------------------------------------------------------------------------
uint32_t MED(uint32_t med)
.........................................................................

-------------------------------------------------------------------------

  uint32_t MED(uint32_t med);

Back to the top of ArtsBgp4Attribute


uint32_t LocalPref() const;


-------------------------------------------------------------------------
uint32_t LocalPref() const
.........................................................................

-------------------------------------------------------------------------

  uint32_t LocalPref() const;

Back to the top of ArtsBgp4Attribute


uint32_t LocalPref(uint32_t localPref);


-------------------------------------------------------------------------
uint32_t LocalPref(uint32_t localPref)
.........................................................................

-------------------------------------------------------------------------

  uint32_t LocalPref(uint32_t localPref);

Back to the top of ArtsBgp4Attribute


const ArtsBgp4AggregatorAttribute * Aggregator() const;


-------------------------------------------------------------------------
const ArtsBgp4AggregatorAttribute * Aggregator() const
.........................................................................

-------------------------------------------------------------------------

  const ArtsBgp4AggregatorAttribute * Aggregator() const;

Back to the top of ArtsBgp4Attribute


Aggregator(const ArtsBgp4AggregatorAttribute & aggregator);

No documentation available.

  Aggregator(const ArtsBgp4AggregatorAttribute & aggregator);

Back to the top of ArtsBgp4Attribute


const deque<uint32_t> * Community() const;


-------------------------------------------------------------------------
const deque<uint32_t> * Community() const
.........................................................................

-------------------------------------------------------------------------

  const deque<uint32_t> * Community() const;

Back to the top of ArtsBgp4Attribute


const deque<uint32_t> * Community(const deque<uint32_t> & community);


-------------------------------------------------------------------------
const deque<uint32_t> * Community(const deque<uint32_t> & community)
.........................................................................

-------------------------------------------------------------------------

  const deque<uint32_t> * Community(const deque<uint32_t> & community);

Back to the top of ArtsBgp4Attribute


const ArtsBgp4DPAttribute * DP() const;


-------------------------------------------------------------------------
const ArtsBgp4DPAttribute * DP() const
.........................................................................

-------------------------------------------------------------------------

  const ArtsBgp4DPAttribute * DP() const;

Back to the top of ArtsBgp4Attribute


const ArtsBgp4DPAttribute * DP(const ArtsBgp4DPAttribute & dp);


-------------------------------------------------------------------------
const ArtsBgp4DPAttribute * DP(const ArtsBgp4DPAttribute & dp)
.........................................................................

-------------------------------------------------------------------------

  const ArtsBgp4DPAttribute * DP(const ArtsBgp4DPAttribute & dp);

Back to the top of ArtsBgp4Attribute


void DeleteValue();

No documentation available.

  void DeleteValue();

Back to the top of ArtsBgp4Attribute


All Members

public:
uint8_t Flags() const;
uint8_t Flags(uint8_t flags);
uint8_t Type() const;
uint8_t Type(uint8_t attrType);
uint16_t Length() const;
uint16_t Length(uint16_t length);
uint8_t Origin() const;
uint8_t Origin(uint8_t origin);
const ArtsBgp4AsPathAttribute * AsPath() const;
AsPath(const ArtsBgp4AsPathAttribute & asPath);
const ArtsBgp4Prefix * NextHop() const;
const ArtsBgp4Prefix * NextHop(const ArtsBgp4Prefix & nextHop);
uint32_t MED() const;
uint32_t MED(uint32_t med);
uint32_t LocalPref() const;
uint32_t LocalPref(uint32_t localPref);
const ArtsBgp4AggregatorAttribute * Aggregator() const;
Aggregator(const ArtsBgp4AggregatorAttribute & aggregator);
const deque<uint32_t> * Community() const;
const deque<uint32_t> * Community(const deque<uint32_t> & community);
const ArtsBgp4DPAttribute * DP() const;
const ArtsBgp4DPAttribute * DP(const ArtsBgp4DPAttribute & dp);
void DeleteValue();
protected:

Back to the top of ArtsBgp4Attribute


Ancestors

Class does not inherit from any other class.

Back to the top of ArtsBgp4Attribute


Descendants

Class is not inherited by any others.

Back to the top of ArtsBgp4Attribute


Generated from source by the Cocoon utilities on Sat Oct 17 14:39:53 1998 .

Report problems to jkotula@unimax.com