mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Use shared_ptrs for DNS_Mapping objects
This commit is contained in:
parent
b531ec97ef
commit
c4cac72fd7
4 changed files with 32 additions and 36 deletions
|
@ -11,6 +11,9 @@
|
|||
namespace zeek::detail
|
||||
{
|
||||
|
||||
class DNS_Mapping;
|
||||
using DNS_MappingPtr = std::shared_ptr<DNS_Mapping>;
|
||||
|
||||
class DNS_Mapping
|
||||
{
|
||||
public:
|
||||
|
@ -51,7 +54,7 @@ public:
|
|||
return util::current_time() > (creation_time + req_ttl);
|
||||
}
|
||||
|
||||
void Merge(DNS_Mapping* other);
|
||||
void Merge(const DNS_MappingPtr& other);
|
||||
|
||||
static void InitializeCache(FILE* f);
|
||||
static bool ValidateCacheVersion(FILE* f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue