mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Add base class for IP-based packet analyzers
This commit is contained in:
parent
3e1692676d
commit
c1f0d312b5
23 changed files with 781 additions and 421 deletions
|
@ -17,8 +17,11 @@ public:
|
|||
*
|
||||
* @param name The name for the type of analyzer. The name must match
|
||||
* the one the corresponding Component registers.
|
||||
* @param report_unknown_protocols Flag for whether to report unknown
|
||||
* protocols during packet forwarding. This should generally always be
|
||||
* set to true.
|
||||
*/
|
||||
explicit Analyzer(std::string name);
|
||||
explicit Analyzer(std::string name, bool report_unknown_protocols=true);
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
@ -165,6 +168,11 @@ private:
|
|||
Dispatcher dispatcher;
|
||||
AnalyzerPtr default_analyzer = nullptr;
|
||||
|
||||
/**
|
||||
* Flag for whether to report unknown protocols in ForwardPacket.
|
||||
*/
|
||||
bool report_unknown_protocols = true;
|
||||
|
||||
void Init(const Tag& tag);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue