mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Suppress warning on an existing packet analyzer being remapped.
There was a check generating an internal warning if a new packet analyzer mapping overwrote an existing one. However, replacing an existing analyzer with a new one seems a legitimate use case (and will be supported by Spicy soon). So removing that warning.
This commit is contained in:
parent
a5b2e44e57
commit
a84d06a2c3
1 changed files with 0 additions and 4 deletions
|
@ -52,10 +52,6 @@ void Dispatcher::Register(uint32_t identifier, AnalyzerPtr analyzer)
|
|||
}
|
||||
|
||||
int64_t index = identifier - lowest_identifier;
|
||||
if ( table[index] != nullptr )
|
||||
reporter->InternalWarning("Overwriting packet analyzer mapping %#8" PRIx64 " => %s with %s",
|
||||
index + lowest_identifier, table[index]->GetAnalyzerName(),
|
||||
analyzer->GetAnalyzerName());
|
||||
table[index] = std::move(analyzer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue