|
|
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:
name | the canonical name for the routing protocol. |
proto_type | either IGP or EGP |
genid | the 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:
other | the 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. |