Filters which are not used should just not be configured / executed. In the future an option to disable a filter should be added. Although, not running a filter is harmless for now [if configured however, state consumes memory].
| PolicyFilters ()
| PolicyFilters (FilterBase* im, FilterBase* sm, FilterBase* ex)
| ~PolicyFilters ()
|bool run_filter (const uint32_t& type, VarRW& varrw)
Run a filter and decide whether route should be accepted.
May throw an exception on run-time errors.
|type||which filter should be executed.|
|varrw||the VarRW associated with the route to be filtered.|
Returns: true if route is accepted, false otherwise.
|void configure (const uint32_t& type, const string& conf)
Configure a filter.
Throws an exception on error.
|type||the filter to configure.|
|conf||the configuration of the filter.|
|void reset (const uint32_t& type)
Reset a filter.
|type||the filter to reset.|