mirror of
https://github.com/nmap/nmap.git
synced 2026-06-20 07:29:59 +00:00
Print IP addresses in ippackethdrinfo() in tcpip.cc when there's an unknown protocol (like with -sO)
This commit is contained in:
parent
c0bb3fa376
commit
692f904579
1 changed files with 2 additions and 2 deletions
4
tcpip.cc
4
tcpip.cc
|
|
@ -636,8 +636,8 @@ static const char *ippackethdrinfo(const u8 *packet, u32 len) {
|
|||
snprintf(protoinfo, sizeof(protoinfo), "ICMP %s > %s %s (type=%d/code=%d) %s",
|
||||
srchost, dsthost, icmptype, ping->type, ping->code, ipinfo);
|
||||
} else {
|
||||
snprintf(protoinfo, sizeof(protoinfo), "Unknown protocol (%d): %s",
|
||||
ip->ip_p, ipinfo);
|
||||
snprintf(protoinfo, sizeof(protoinfo), "Unknown protocol (%d) %s > %s: %s",
|
||||
ip->ip_p, srchost, dsthost, ipinfo);
|
||||
}
|
||||
|
||||
return protoinfo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue