mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Move zeek-af_packet-plugin code into the main Zeek repository
This is based on commit b89a6f64123f778090d1dd6ec48e6b8e8906ea11 from the zeek-af_packet-plugin repository.
This commit is contained in:
parent
68926faf47
commit
5ccf64102b
14 changed files with 772 additions and 16 deletions
27
src/iosource/af_packet/Plugin.cc
Normal file
27
src/iosource/af_packet/Plugin.cc
Normal file
|
@ -0,0 +1,27 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek/plugin/Plugin.h"
|
||||
|
||||
#include "zeek/iosource/Component.h"
|
||||
#include "zeek/iosource/af_packet/AF_Packet.h"
|
||||
|
||||
namespace zeek::plugin::Zeek_AF_Packet {
|
||||
|
||||
class Plugin : public plugin::Plugin {
|
||||
plugin::Configuration Configure() override {
|
||||
AddComponent(
|
||||
new ::zeek::iosource::PktSrcComponent("AF_PacketReader", "af_packet",
|
||||
::zeek::iosource::PktSrcComponent::LIVE,
|
||||
::zeek::iosource::pktsrc::AF_PacketSource::InstantiateAF_Packet));
|
||||
|
||||
zeek::plugin::Configuration config;
|
||||
config.name = "Zeek::AF_Packet";
|
||||
config.description = "Packet acquisition via AF_Packet";
|
||||
config.version.major = 4;
|
||||
config.version.minor = 0;
|
||||
config.version.patch = 0;
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
|
||||
} // namespace zeek::plugin::Zeek_AF_Packet
|
Loading…
Add table
Add a link
Reference in a new issue