mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Port DNS_Mgr to use new IPAddr class, enable lookups on IPv6 addrs.
Host lookups still need to be changed to also do AAAA queries.
This commit is contained in:
parent
c0f05f57a7
commit
0f207c243c
6 changed files with 61 additions and 84 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "BroString.h"
|
||||
#include "IPAddr.h"
|
||||
|
||||
#define UHASH_KEY_SIZE 36
|
||||
|
||||
|
@ -28,6 +29,7 @@ public:
|
|||
HashKey(const void* p);
|
||||
HashKey(const char* s);
|
||||
HashKey(const BroString* s);
|
||||
HashKey(const IPAddr& addr);
|
||||
~HashKey()
|
||||
{
|
||||
if ( is_our_dynamic )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue