mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Rework DNS_Mgr API to be more consistent and to support more request types
This commit is contained in:
parent
336c6ae5c2
commit
9f197aa458
6 changed files with 920 additions and 721 deletions
|
@ -15,7 +15,7 @@ class DNS_Mapping
|
|||
{
|
||||
public:
|
||||
DNS_Mapping() = delete;
|
||||
DNS_Mapping(const char* host, struct hostent* h, uint32_t ttl);
|
||||
DNS_Mapping(std::string host, struct hostent* h, uint32_t ttl);
|
||||
DNS_Mapping(const IPAddr& addr, struct hostent* h, uint32_t ttl);
|
||||
DNS_Mapping(FILE* f);
|
||||
|
||||
|
@ -35,6 +35,7 @@ public:
|
|||
StringValPtr Host();
|
||||
|
||||
double CreationTime() const { return creation_time; }
|
||||
uint32_t TTL() const { return req_ttl; }
|
||||
|
||||
void Save(FILE* f) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue