mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Reformat the world
This commit is contained in:
parent
194cb24547
commit
b2f171ec69
714 changed files with 35149 additions and 35203 deletions
|
@ -1,27 +1,30 @@
|
|||
// See the file in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek/plugin/Plugin.h"
|
||||
|
||||
#include "zeek/iosource/Component.h"
|
||||
#include "zeek/iosource/pcap/Source.h"
|
||||
#include "zeek/iosource/pcap/Dumper.h"
|
||||
#include "zeek/iosource/pcap/Source.h"
|
||||
|
||||
namespace zeek::plugin::detail::Zeek_Pcap {
|
||||
namespace zeek::plugin::detail::Zeek_Pcap
|
||||
{
|
||||
|
||||
class Plugin : public plugin::Plugin {
|
||||
class Plugin : public plugin::Plugin
|
||||
{
|
||||
public:
|
||||
plugin::Configuration Configure() override
|
||||
{
|
||||
AddComponent(new iosource::PktSrcComponent(
|
||||
"PcapReader", "pcap", iosource::PktSrcComponent::BOTH,
|
||||
iosource::pcap::PcapSource::Instantiate));
|
||||
AddComponent(new iosource::PktDumperComponent(
|
||||
"PcapWriter", "pcap", iosource::pcap::PcapDumper::Instantiate));
|
||||
AddComponent(new iosource::PktSrcComponent("PcapReader", "pcap",
|
||||
iosource::PktSrcComponent::BOTH,
|
||||
iosource::pcap::PcapSource::Instantiate));
|
||||
AddComponent(new iosource::PktDumperComponent("PcapWriter", "pcap",
|
||||
iosource::pcap::PcapDumper::Instantiate));
|
||||
|
||||
plugin::Configuration config;
|
||||
config.name = "Zeek::Pcap";
|
||||
config.description = "Packet acquisition via libpcap";
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
} plugin;
|
||||
|
||||
} // namespace zeek::plugin::detail::Zeek_Pcap
|
||||
} // namespace zeek::plugin::detail::Zeek_Pcap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue