1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Merge from svn://svn.insecure.org/nmap-exp/david/nmap-traceroute. This

brings in a new, faster, parallel version of traceroute.
This commit is contained in:
david
2009-09-17 00:03:46 +00:00
parent 86e7a63bf6
commit 577a1be0e7
11 changed files with 1472 additions and 1597 deletions

View File

@@ -116,6 +116,7 @@ void Target::Initialize() {
FPR = NULL;
osscan_flag = OS_NOTPERF;
weird_responses = flags = 0;
traceroute_probespec.type = PS_NONE;
memset(&to, 0, sizeof(to));
memset(&targetsock, 0, sizeof(targetsock));
memset(&sourcesock, 0, sizeof(sourcesock));
@@ -228,7 +229,7 @@ void Target::setTargetSockAddr(struct sockaddr_storage *ss, size_t ss_len) {
}
// Returns IPv4 host address or {0} if unavailable.
struct in_addr Target::v4host() {
struct in_addr Target::v4host() const {
const struct in_addr *addy = v4hostip();
struct in_addr in;
if (addy) return *addy;