1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Add support for decoys in IPv6 closes #433 and fixes #98

This commit is contained in:
abhishek
2016-08-17 06:09:09 +00:00
parent b5606dde91
commit 9d288db7fd
14 changed files with 206 additions and 173 deletions

View File

@@ -673,16 +673,7 @@ void Probe::send(int rawsd, eth_t *ethsd, struct timeval *now) {
host->target->SourceSockAddr(&source, &source_len);
sent_time = get_now(now);
} else {
if (o.af() == AF_INET) {
struct sockaddr_in *sin;
sin = (struct sockaddr_in *) &source;
sin->sin_family = AF_INET;
sin->sin_addr = o.decoys[decoy];
} else {
/* Decoys are IPv4-only. */
continue;
}
source = o.decoys[decoy];
}
packet = this->build_packet(&source, &packetlen);