| 
 | 
 | ||||||||||||||||
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:
| name | the canonical name for the routing protocol. | 
| protocol_type | the routing protocol type (ProtocolType). | 
| genid | the 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:
| 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 | 
Increment the protocol generation ID.