zeek/testing/btest/plugins/protocol-plugin/src
Robin Sommer a7343ee019 Fix registration of protocol analyzers from inside plugins.
With the recent packet manager work, it broke to register a protocol
analyzer for a specific port from inside a plugin's initialization code.
That's because that registration now depends on the packet manager being
set up, which isn't case at that time a plugin's `InitPostInit()` runs.
This fix contains two parts:

    - Initialize the packet manager before the analyzer manager, so that
      the latter's `InitPostScript()` can rely on the former being
      ready.

    - Change the analyzer manager to (only) record port registrations
      happening before it's fully initialized. Its `InitPostScript()`
      then performs the actual registrations, knowing it can use the
      packet manager now.

This comes with a `cmake/` to add a missing include directory.
2021-07-18 10:00:49 +02:00
..
events.bif Adding a test building a file analyzer plugin. 2014-06-18 14:33:42 -07:00
foo-analyzer.pac Update plugin btests for namespace changes 2020-08-24 12:07:03 -07:00
foo-protocol.pac Adding a test building a file analyzer plugin. 2014-06-18 14:33:42 -07:00
Foo.cc Prefix #includes of .bif.h files with zeek/ 2021-02-02 19:15:05 -08:00
Foo.h Update plugin btests for namespace changes 2020-08-24 12:07:03 -07:00
foo.pac Remove all fully-deprecated files 2021-01-27 10:52:40 -07:00
Plugin.cc Fix registration of protocol analyzers from inside plugins. 2021-07-18 10:00:49 +02:00
Plugin.h Fix registration of protocol analyzers from inside plugins. 2021-07-18 10:00:49 +02:00