Add merging to DNS_Mgr::AddResult() to support both ipv4 and ipv6 responses simultaneously

This commit is contained in:
Tim Wojtulewicz 2022-01-27 14:44:30 -07:00
parent 9f197aa458
commit 3bdc744b14
4 changed files with 120 additions and 60 deletions

View file

@ -52,6 +52,8 @@ public:
int Type() const { return map_type; }
void Merge(DNS_Mapping* other);
protected:
friend class DNS_Mgr;
@ -70,7 +72,7 @@ protected:
ListValPtr addrs_val;
double creation_time = 0.0;
int map_type = 0;
int map_type = AF_UNSPEC;
bool no_mapping = false; // when initializing from a file, immediately hit EOF
bool init_failed = false;
bool failed = false;