Filter is one of the classes used by ValidatorConfig. More...
#include <filter.hpp>
Public Member Functions | |
virtual | ~Filter ()=default |
bool | match (uint32_t pktType, const Name &pktName) |
Static Public Member Functions | |
static unique_ptr< Filter > | create (const ConfigSection &configSection, const std::string &configFilename) |
Create a filter from the configuration section. More... | |
Filter is one of the classes used by ValidatorConfig.
The ValidatorConfig class consists of a set of rules. The Filter class is a part of a rule and is used to match packet. Matched packets will be checked against the checkers defined in the rule.
Definition at line 43 of file filter.hpp.
|
virtualdefault |
bool ndn::security::v2::validator_config::Filter::match | ( | uint32_t | pktType, |
const Name & | pktName | ||
) |
Definition at line 37 of file filter.cpp.
References ndn::tlv::Data, ndn::Name::getPrefix(), ndn::tlv::Interest, ndn::signed_interest::MIN_SIZE, and ndn::Name::size().
|
static |
Create a filter from the configuration section.
configSection | The section containing the definition of filter. |
configFilename | The configuration file name. |
Definition at line 76 of file filter.cpp.
Referenced by ndn::security::v2::validator_config::Rule::create().