mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Move dispatching into packet analyzers.
WIP that updates only the Ethernet analyzer.
This commit is contained in:
parent
96d0e11bb8
commit
9feda100b9
13 changed files with 105 additions and 88 deletions
|
@ -87,6 +87,16 @@ public:
|
|||
*/
|
||||
void ProcessPacket(Packet* packet);
|
||||
|
||||
/**
|
||||
* Looks up a packet analyzer by identifier considering the context
|
||||
* as given by current_state.
|
||||
*
|
||||
* @param identifier The identifier to look up.
|
||||
*
|
||||
* @return The analyzer corresponding to the identifier.
|
||||
*/
|
||||
AnalyzerPtr Dispatch(uint32_t identifier);
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
|
@ -99,8 +109,6 @@ private:
|
|||
*/
|
||||
void CustomEncapsulationSkip(Packet* packet, const uint8_t* data);
|
||||
|
||||
AnalyzerPtr Dispatch(uint32_t identifier);
|
||||
|
||||
DispatcherPtr GetDispatcher(Config& configuration, const std::string& dispatcher_name);
|
||||
|
||||
std::map<std::string, AnalyzerPtr> analyzers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue