mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Be more clear: if it's ICMP Dest Unreach, say so.
This commit is contained in:
parent
99efa84d86
commit
594756bd1d
1 changed files with 2 additions and 2 deletions
|
|
@ -245,7 +245,7 @@ static reason_codes icmpv4_to_reason(int icmp_type, int icmp_code) {
|
|||
case ICMP_UNREACH_FILTER_PROHIB:
|
||||
return ER_ADMINPROHIBITED;
|
||||
}
|
||||
return ER_UNKNOWN;
|
||||
return ER_DESTUNREACH;
|
||||
|
||||
case ICMP_SRCQUENCH:
|
||||
return ER_SOURCEQUENCH;
|
||||
|
|
@ -288,7 +288,7 @@ static reason_codes icmpv6_to_reason(int icmp_type, int icmp_code) {
|
|||
case ICMPV6_UNREACH_REJECT_ROUTE:
|
||||
return ER_REJECTROUTE;
|
||||
}
|
||||
return ER_UNKNOWN;
|
||||
return ER_DESTUNREACH;
|
||||
|
||||
case ICMPV6_PARAMPROBLEM:
|
||||
return ER_PARAMPROBLEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue