Coverage Report

Created: 2026-05-27 06:34

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/zeek/src/packet_analysis/protocol/udp/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/analyzer/Component.h"
6
#include "zeek/packet_analysis/Component.h"
7
#include "zeek/packet_analysis/protocol/udp/UDP.h"
8
9
namespace zeek::plugin::Zeek_UDP {
10
11
class Plugin final : public zeek::plugin::Plugin {
12
public:
13
65
    zeek::plugin::Configuration Configure() override {
14
65
        AddComponent(new zeek::packet_analysis::Component("UDP", zeek::packet_analysis::UDP::UDPAnalyzer::Instantiate));
15
65
        AddComponent(new zeek::analyzer::Component("UDP", nullptr, 0, true, false, true));
16
17
65
        zeek::plugin::Configuration config;
18
65
        config.name = "Zeek::UDP";
19
65
        config.description = "Packet analyzer for UDP";
20
65
        return config;
21
65
    }
22
23
} plugin;
24
25
} // namespace zeek::plugin::Zeek_UDP