/src/zeek/src/iosource/af_packet/Plugin.cc
Line | Count | Source |
1 | | // See the file "COPYING" in the main distribution directory for copyright. |
2 | | |
3 | | #include "zeek/plugin/Plugin.h" |
4 | | |
5 | | #include "zeek/iosource/Component.h" |
6 | | #include "zeek/iosource/af_packet/AF_Packet.h" |
7 | | |
8 | | namespace zeek::plugin::Zeek_AF_Packet { |
9 | | |
10 | | class Plugin : public plugin::Plugin { |
11 | 65 | plugin::Configuration Configure() override { |
12 | 65 | AddComponent( |
13 | 65 | new ::zeek::iosource::PktSrcComponent("AF_PacketReader", "af_packet", |
14 | 65 | ::zeek::iosource::PktSrcComponent::LIVE, |
15 | 65 | ::zeek::iosource::af_packet::AF_PacketSource::InstantiateAF_Packet)); |
16 | | |
17 | 65 | zeek::plugin::Configuration config; |
18 | 65 | config.name = "Zeek::AF_Packet"; |
19 | 65 | config.description = "Packet acquisition via AF_Packet"; |
20 | 65 | config.version.major = 4; |
21 | 65 | config.version.minor = 0; |
22 | 65 | config.version.patch = 0; |
23 | 65 | return config; |
24 | 65 | } |
25 | | } plugin; |
26 | | |
27 | | } // namespace zeek::plugin::Zeek_AF_Packet |