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;
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Feb 03 2007