mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Add ICMPv6 Parameter Problem reason code.
This commit is contained in:
parent
5f8b19c700
commit
51c82aaccf
2 changed files with 5 additions and 1 deletions
|
|
@ -164,6 +164,7 @@ reason_map_type::reason_map_type(){
|
|||
reason_map[ER_NOROUTE] = reason_string("no-route", "no-routes");
|
||||
reason_map[ER_BEYONDSCOPE] = reason_string("beyond-scope", "beyond-scopes");
|
||||
reason_map[ER_REJECTROUTE] = reason_string("reject-route", "reject-routes");
|
||||
reason_map[ER_PARAMPROBLEM] = reason_string("param-problem", "param-problems");
|
||||
}
|
||||
|
||||
/* Map holding plural and singular versions of error codes */
|
||||
|
|
@ -241,6 +242,9 @@ static reason_codes icmpv6_to_reason(int icmp_type, int icmp_code) {
|
|||
}
|
||||
return ER_UNKNOWN;
|
||||
|
||||
case ICMPV6_PARAMPROBLEM:
|
||||
return ER_PARAMPROBLEM;
|
||||
|
||||
case ICMPV6_TIMEXCEED:
|
||||
return ER_TIMEEXCEEDED;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ enum reason_codes {
|
|||
ER_ARPRESPONSE, ER_TCPRESPONSE, ER_NORESPONSE,
|
||||
ER_INITACK, ER_ABORT,
|
||||
ER_LOCALHOST, ER_SCRIPT, ER_UNKNOWN, ER_USER,
|
||||
ER_NOROUTE, ER_BEYONDSCOPE, ER_REJECTROUTE,
|
||||
ER_NOROUTE, ER_BEYONDSCOPE, ER_REJECTROUTE, ER_PARAMPROBLEM,
|
||||
};
|
||||
|
||||
/* A map of reason_codes to plural and singular *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue