xorp

ASPathAttribute Class Reference

ASPathAttribute contain an ASPath, whose structure is documented in aspath.hh. More...

#include <path_attribute.hh>

Inheritance diagram for ASPathAttribute:
PathAttribute NONCOPYABLE

List of all members.

Public Member Functions

 ASPathAttribute (const ASPath &p)
 ASPathAttribute.
 ASPathAttribute (const uint8_t *d, bool use_4byte_asnums) throw (CorruptMessage)
PathAttributeclone () const
 Make a copy of the current attribute.
string str () const
 We need to encode an attribute to send to a peer.
ASPathas_path () const
AS4Pathas4_path () const
bool encode (uint8_t *buf, size_t &wire_size, const BGPPeerData *peerdata) const
 see note in aspath.hh on using 4-byte AS numbers

Private Attributes

ASPath_as_path

Detailed Description

ASPathAttribute contain an ASPath, whose structure is documented in aspath.hh.


Member Function Documentation

PathAttribute * ASPathAttribute::clone ( ) const [virtual]

Make a copy of the current attribute.

The derived class should use new to generate a copy of itself. The wire format representation will not be used by the caller.

Implements PathAttribute.

string ASPathAttribute::str ( ) const [inline, virtual]

We need to encode an attribute to send to a peer.

However we only have the canonically encoded byte stream data for it. Sometimes that is fine, and we should just send that; sometimes we need to decode and re-encode for this specific peer.

Reimplemented from PathAttribute.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations