This section describes the functions that are used during the setup phase by both enumeration and generation filters. The following functions are described:
When you use the filterrules-setup function, logtype is the type of log file to use. The value can be verbose, normal, or terse.
The list of parameters used with the filterrules-setup function and their description are:
Path name to the file containing the filter rules to be used by this filter.
Setup fn=filterrules-setup config=./config/filterrules.conf logtype=normal |
The setup-regex-cache function initializes the cache size for the filter-by-regex and generate-by-regex functions. Use this function to specify a number other than the default of 32.
The parameter used with the setup-regex-cache function and its description is:
Maximum number of compiled regular expressions to be kept in the regex cache.
Setup fn=setup-regex-cache cache-size=28 |
The setup-type-by-extension function configures the filter to recognize file name extensions. It must be called before the assign-type-by-extension function can be used. The file specified as a parameter must contain mappings between standard MIME content types and file extension strings.
The parameter used with the setup-type-by-extension function and its description is:
Name of the MIME types configuration file.
Setup fn=setup-type-by-extension file=./config/mime.types |