Nmap Development mailing list archives
[PATCHed] Print IP addresses with --packet-trace -sO
From: Kris Katterjohn <katterjohn () gmail com>
Date: Sat, 03 Feb 2007 20:20:27 -0600
The attached patch (/nmap SVN r4466) prints the IP addresses in ippackethdrinfo() when it encounters an unknown protocol. This function is mainly used when doing --packet-trace, and we get unknown protocols a lot when using -sO. Lemme know what you think. Thanks, Kris Katterjohn
Index: tcpip.cc =================================================================== --- tcpip.cc (revision 4465) +++ tcpip.cc (revision 4466) @@ -636,8 +636,8 @@ 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;
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCHed] Print IP addresses with --packet-trace -sO Kris Katterjohn (Feb 03)