mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Add merging to DNS_Mgr::AddResult() to support both ipv4 and ipv6 responses simultaneously
This commit is contained in:
parent
9f197aa458
commit
3bdc744b14
4 changed files with 120 additions and 60 deletions
|
@ -167,6 +167,12 @@ void DNS_Mapping::Save(FILE* f) const
|
|||
fprintf(f, "%s\n", addr.AsString().c_str());
|
||||
}
|
||||
|
||||
void DNS_Mapping::Merge(DNS_Mapping* other)
|
||||
{
|
||||
std::copy(other->names.begin(), other->names.end(), std::back_inserter(names));
|
||||
std::copy(other->addrs.begin(), other->addrs.end(), std::back_inserter(addrs));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue