1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-26 08:09:07 +00:00

Fixing reason code based on ICMP response (during host discovery)

This commit is contained in:
kris
2007-10-24 18:31:51 +00:00
parent aeb9cae04b
commit 51c7cdb4c9

View File

@@ -3868,7 +3868,7 @@ static int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
current_reason = ping->type + ER_ICMPTYPE_MOD;
if (current_reason == ER_DESTUNREACH)
current_reason = ping->type + ER_ICMPCODE_MOD;
current_reason = ping->code + ER_ICMPCODE_MOD;
/* Echo reply, Timestamp reply, or Address Mask Reply */
if (ping->type == 0 || ping->type == 14 || ping->type == 18) {