mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Require -d3, not just -d, for the message
Found whacked packet protocol 17 in get_ping_pcap_result and rewrite it Received packet with protocol 17; ignoring. The message is printed when we receive a packet we can't use during a ping scan, but it's not "whacked" to receive a UDP packet during a TCP scan for example.
This commit is contained in:
parent
a251c563c3
commit
ea36c6c890
1 changed files with 3 additions and 2 deletions
|
|
@ -4557,8 +4557,9 @@ static int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
|||
if (o.debugging)
|
||||
log_write(LOG_STDOUT, "In response to UDP-ping, we got UDP packet back from %s port %hu (trynum = %d)\n", inet_ntoa(ip->ip_src), htons(udp->uh_sport), trynum);
|
||||
}
|
||||
} else if (!USI->ptech.rawprotoscan && o.debugging) {
|
||||
error("Found whacked packet protocol %d in %s.", ip->ip_p, __func__);
|
||||
} else if (!USI->ptech.rawprotoscan) {
|
||||
if (o.debugging > 2)
|
||||
error("Received packet with protocol %d; ignoring.", ip->ip_p);
|
||||
}
|
||||
|
||||
/* Check for a protocol reply */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue