xorp

IsOfProtocol< A > Class Template Reference

Protocol Policy class. More...

#include <redist_policy.hh>

Inheritance diagram for IsOfProtocol< A >:
RedistPolicy< A >

List of all members.

Public Member Functions

 IsOfProtocol (const Protocol &p)
bool accept (const IPRouteEntry< A > &ipr) const
 Determine whether route should be accepted for redistribution.

Private Attributes

Protocol _protocol

Detailed Description

template<typename A>
class IsOfProtocol< A >

Protocol Policy class.

Accepts route update from a specific routing protocol.


Member Function Documentation

template<typename A >
bool IsOfProtocol< A >::accept ( const IPRouteEntry< A > &  ipr) const [inline, virtual]

Determine whether route should be accepted for redistribution.

Parameters:
iprroute to be examined.
Returns:
true if route should be accepted for redistribution, false otherwise.

Implements RedistPolicy< A >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations