1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

Keep trace of the list of addresses a name resolved to, and print out

how many there were if there were more than one.
This commit is contained in:
david
2009-10-27 06:08:04 +00:00
parent 030411ffd8
commit 398e53b3de
5 changed files with 53 additions and 9 deletions

View File

@@ -283,6 +283,11 @@ class Target {
struct probespec traceroute_probespec;
std::list <TracerouteHop> traceroute_hops;
/* If the address for this target came from a DNS lookup, the list of
resultant addresses (sometimes there are more than one). The address
actually used is always the first element in this list. */
std::list<struct sockaddr_storage> resolved_addrs;
#ifndef NOLUA
ScriptResults scriptResults;
#endif