class FastPathAttributeList


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 FastPathAttributeList (PAListRef<A>& palist)

FastPathAttributeList

 FastPathAttributeList (FastPathAttributeList<A>& fpalist)

FastPathAttributeList

 FastPathAttributeList (const NextHopAttribute<A> &nexthop, const ASPathAttribute &aspath, const OriginAttribute &origin)

FastPathAttributeList

 FastPathAttributeList ()

FastPathAttributeList

 ~FastPathAttributeList ()

~FastPathAttributeList

[virtual]

void  load_raw_data (const uint8_t *data, size_t size, const BGPPeerData* peer, bool have_nlri, BGPMain *mainprocess, bool do_checks)

load_raw_data

Load the raw path attribute data from an update message. This data will not yet be in canonical form. Call canonicalize() to put the data in canonical form.

void  lock ()

lock

[const]

void  unlock ()

unlock

[const]

bool  is_locked ()

is_locked

[const]

NextHopAttribute<A>*  nexthop_att ()

nexthop_att

ASPathAttribute*  aspath_att ()

aspath_att

AS4PathAttribute*  as4path_att ()

as4path_att

OriginAttribute*  origin_att ()

origin_att

MEDAttribute*  med_att ()

med_att

LocalPrefAttribute*  local_pref_att ()

local_pref_att

AtomicAggAttribute*  atomic_aggregate_att ()

atomic_aggregate_att

AggregatorAttribute*  aggregator_att ()

aggregator_att

CommunityAttribute*  community_att ()

community_att

OriginatorIDAttribute*  originator_id ()

originator_id

ClusterListAttribute*  cluster_list ()

cluster_list

template <typename A2> MPReachNLRIAttribute<A2> * mpreach (Safi)

mpreach

template <typename A2> MPUNReachNLRIAttribute<A2> * mpunreach (Safi)

mpunreach

A&  nexthop ()

nexthop

ASPath&  aspath ()

aspath

OriginType  origin ()

origin

bool  complete ()

complete

[const virtual]

void  add_path_attribute (const PathAttribute &att)

add_path_attribute

Add this path attribute to the list after making a local copy.

void  add_path_attribute (PathAttribute *att)

add_path_attribute

Add this path attribute to the list don't make a local copy.

PathAttribute*  find_attribute_by_type (PathAttType type)

find_attribute_by_type

return the relevant path attribute, given the PA type.

int  max_att ()

max_att

[const]

return the highest attribute type.

void  process_unknown_attributes ()

process_unknown_attributes

For unknown attributes: 1) If transitive set the partial bit. 2) If not transitive remove.

void  replace_nexthop (const A& nexthop)

replace_nexthop

void  replace_AS_path (const ASPath& as_path)

replace_AS_path

void  replace_origin (const OriginType& origin)

replace_origin

void  remove_attribute_by_type (PathAttType type)

remove_attribute_by_type

void  remove_attribute_by_pointer (PathAttribute*)

remove_attribute_by_pointer

bool  encode (uint8_t* buf, size_t &wire_size, const BGPPeerData* peerdata)

encode

[const]

Encode the PA List for transmission to the specified peer. Note that as Some peers speak 4-byte AS numbers and some don't, the encoding is peer-specific.

Parameters:

bufis the buffer to encode into.
wire_sizeis given the size of the buffer to encode into, and returns the amount of data placed in the buffer.
peeris the peer to encode this for. Some peers want 4-byte AS numbers and some don't.

Returns: true if the data was successfully encoded; false if there wasn't enough space in the buffer for the data.

string  str ()

str

[const]

void  canonicalize ()

canonicalize

[const]

const uint8_t*  canonical_data ()

canonical_data

[const]

size_t  canonical_length ()

canonical_length

[const]

bool  canonicalized ()

canonicalized

[const]

bool  operator== (const FastPathAttributeList<A>& him)

operator==

[const]

bool  is_empty ()

is_empty

[const]

int  attribute_count ()

attribute_count

[const]


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:04 2009, using kdoc 2.0a54+XORP.