mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +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;
|
||||
}
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ static std::pair<std::string, std::string> split_prefix(std::string path)
|
|||
// PktSrc to use. If not, choose default.
|
||||
std::string prefix;
|
||||
|
||||
std::string::size_type i = path.find(":");
|
||||
std::string::size_type i = path.find("%");
|
||||
if ( i != std::string::npos )
|
||||
{
|
||||
prefix = path.substr(0, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue