class Protocol

Routing protocol information. More...

Definition#include <protocol.hh>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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

 Protocol (const string& name, int proto_type, int genid)

Protocol

Protocol constuctor

Parameters:
namethe canonical name for the routing protocol.
proto_typeeither IGP or EGP
genidthe generation id for the protocol (if the protocol goes down and comes up, the genid should be incremented).

int  proto_type ()

proto_type

[const]

Returns: the protocol type: either IGP or EGP

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


Generated by: pavlin on possum.icir.org on Thu Nov 6 23:47:07 2003, using kdoc 2.0a54+XORP.