1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +00:00

close to 3.92 release

This commit is contained in:
fyodor
2005-09-12 08:08:35 +00:00
parent df0dd19d10
commit a14f8bc51c
12 changed files with 218 additions and 58 deletions

View File

@@ -370,6 +370,9 @@ int nmap_main(int argc, char *argv[]) {
if (o.host_timeout <= 200) {
fatal("host_timeout is given in milliseconds and must be greater than 200");
}
if (o.host_timeout <= 1000) {
error("host_timeout is given in milliseconds, so you specified less than a second (%dms). This is allowed but not recommended.". o.host_timeout);
}
} else if (strcmp(long_options[option_index].name, "ttl") == 0) {
o.ttl = atoi(optarg);
if (o.ttl < 0 || o.ttl > 255) {