mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Changing prefix for packet sources/dumper from ':' to '%'.
Addresses BIT-1249.
This commit is contained in:
parent
ea1803881d
commit
cce09b75de
11 changed files with 25 additions and 11 deletions
|
@ -24,7 +24,7 @@ Component::~Component()
|
|||
PktSrcComponent::PktSrcComponent(const std::string& arg_name, const std::string& arg_prefix, InputType arg_type, factory_callback arg_factory)
|
||||
: iosource::Component(plugin::component::PKTSRC, arg_name)
|
||||
{
|
||||
tokenize_string(arg_prefix, ":", &prefixes);
|
||||
tokenize_string(arg_prefix, "%", &prefixes);
|
||||
type = arg_type;
|
||||
factory = arg_factory;
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ void PktSrcComponent::DoDescribe(ODesc* d) const
|
|||
PktDumperComponent::PktDumperComponent(const std::string& name, const std::string& arg_prefix, factory_callback arg_factory)
|
||||
: plugin::Component(plugin::component::PKTDUMPER, name)
|
||||
{
|
||||
tokenize_string(arg_prefix, ":", &prefixes);
|
||||
tokenize_string(arg_prefix, "%", &prefixes);
|
||||
factory = arg_factory;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue