1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

enable --ttl support for connect() scans

This commit is contained in:
kris
2007-10-14 14:37:56 +00:00
parent 8725d37b47
commit dfc9eba4db
3 changed files with 13 additions and 0 deletions

View File

@@ -2458,6 +2458,7 @@ static UltraProbe *sendConnectScanProbe(UltraScanInfo *USI, HostScanStats *hss,
if (CP->sd == -1) pfatal("Socket creation in %s", __func__);
unblock_socket(CP->sd);
init_socket(CP->sd);
set_ttl(CP->sd, o.ttl);
if (hss->target->TargetSockAddr(&sock, &socklen) != 0) {
fatal("Failed to get target socket address in %s", __func__);
}