xorp

PolicyFilter Class Reference

A generic policy filter. More...

#include <policy_filter.hh>

Inheritance diagram for PolicyFilter:
NONCOPYABLE FilterBase

List of all members.

Classes

class  ConfError
 Exception thrown on configuration error. More...

Public Member Functions

void configure (const string &str)
 Configure the filter.
void reset ()
 Reset the filter.
bool acceptRoute (VarRW &varrw)
 See if a route is accepted by the filter.
void set_profiler_exec (PolicyProfiler *profiler)

Private Attributes

vector< PolicyInstr * > * _policies
SetManager _sman
IvExec _exec
PolicyProfiler_profiler_exec
SUBR * _subr

Detailed Description

A generic policy filter.

It may accept/reject/modify any route which supports VarRW.


Member Function Documentation

bool PolicyFilter::acceptRoute ( VarRW varrw) [virtual]

See if a route is accepted by the filter.

The route may be modified by the filter [through VarRW].

Returns:
true if the route is accepted, false otherwise.
Parameters:
varrwthe VarRW associated with the route being filtered.

Implements FilterBase.

void PolicyFilter::configure ( const string &  str) [virtual]

Configure the filter.

Parameters:
strfilter configuration.

Implements FilterBase.

void PolicyFilter::reset ( ) [virtual]

Reset the filter.

Filter becomes a NO-operation -- default action should be returned everytime an acceptRoute is called.

Implements FilterBase.


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