NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::v2::validator_config::Filter Class Referenceabstract

Filter is one of the classes used by ValidatorConfig. More...

#include <filter.hpp>

Inheritance diagram for ndn::security::v2::validator_config::Filter:
Collaboration diagram for ndn::security::v2::validator_config::Filter:

Public Member Functions

virtual ~Filter ()=default
bool match (uint32_t pktType, const Name &pktName, const shared_ptr< ValidationState > &state)

Static Public Member Functions

static unique_ptr< Filtercreate (const ConfigSection &configSection, const std::string &configFilename)
 Create a filter from the configuration section. More...

Detailed Description

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 46 of file filter.hpp.

Constructor & Destructor Documentation

◆ ~Filter()

virtual ndn::security::v2::validator_config::Filter::~Filter ( )

Member Function Documentation

◆ match()

bool ndn::security::v2::validator_config::Filter::match ( uint32_t  pktType,
const Name pktName,
const shared_ptr< ValidationState > &  state 

◆ create()

unique_ptr< Filter > ndn::security::v2::validator_config::Filter::create ( const ConfigSection configSection,
const std::string &  configFilename 

Create a filter from the configuration section.

configSectionThe section containing the definition of filter.
configFilenameThe configuration file name.
a filter created from configuration

Definition at line 91 of file filter.cpp.

References ndn::security::v2::validator_config::getNameRelationFromString(), ns3::ndn::Name, NDN_THROW, and NDN_THROW_NESTED.

Referenced by ndn::security::v2::validator_config::Rule::create().

The documentation for this class was generated from the following files: