mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Add support for DLT_LINUX_SLL2 PCAP link-type
This commit is contained in:
parent
c887bcb517
commit
b8f0acb5f1
13 changed files with 144 additions and 2 deletions
27
src/packet_analysis/protocol/linux_sll2/Plugin.cc
Normal file
27
src/packet_analysis/protocol/linux_sll2/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/packet_analysis/Component.h"
|
||||
#include "zeek/packet_analysis/protocol/linux_sll2/LinuxSLL2.h"
|
||||
|
||||
namespace zeek::plugin::Zeek_LinuxSLL2
|
||||
{
|
||||
|
||||
class Plugin : public zeek::plugin::Plugin
|
||||
{
|
||||
public:
|
||||
zeek::plugin::Configuration Configure()
|
||||
{
|
||||
AddComponent(new zeek::packet_analysis::Component(
|
||||
"LinuxSLL2", zeek::packet_analysis::LinuxSLL2::LinuxSLL2Analyzer::Instantiate));
|
||||
|
||||
zeek::plugin::Configuration config;
|
||||
config.name = "Zeek::LinuxSLL2";
|
||||
config.description = "Linux cooked capture version 2 (SLL2) packet analyzer";
|
||||
return config;
|
||||
}
|
||||
|
||||
} plugin;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue