class Protocol

Routing protocol information. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

Protocol holds information related to a specific routing protocol that is supplying information to the RIB.

 Protocol (const string& name, ProtocolType protocol_type, uint32_t genid)

Protocol

Protocol constuctor

Parameters:

namethe canonical name for the routing protocol.
protocol_typethe routing protocol type (ProtocolType).
genidthe generation ID for the protocol (if the protocol goes down and comes up, the genid should be incremented).
ProtocolType  protocol_type ()

protocol_type

[const]

Returns: the protocol type.

See also: ProtocolType

const string&  name ()

name

[const]

Returns: the canonical name of the routing protocol.

bool  operator== (const Protocol& other)

operator==

[const]

Equality Operator

Two Protocol instances are equal if they match only in name.

Parameters:

otherthe right-hand operand to compare against.

Returns: true if the left-hand Protocol instance is equal to the right-hand protocol instance.

void  increment_genid ()

increment_genid

Increment the protocol generation ID.


Generated by: pavlin on possum.icir.org on Thu Jul 8 23:48:37 2004, using kdoc $.