|
|
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].
PolicyFiltersErr (class) | PolicyFiltersErr |
PolicyFilters ()
| PolicyFilters |
PolicyFilters (FilterBase* im, FilterBase* sm, FilterBase* ex)
| PolicyFilters |
~PolicyFilters ()
| ~PolicyFilters |
[virtual]
bool run_filter (const uint32_t& type, VarRW& varrw)
| run_filter |
Run a filter and decide whether route should be accepted.
May throw an exception on run-time errors.
Parameters:
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 |
Configure a filter.
Throws an exception on error.
Parameters:
type | the filter to configure. |
conf | the configuration of the filter. |
void reset (const uint32_t& type)
| reset |
Reset a filter.
Parameters:
type | the filter to reset. |