7181574 nmap fails with "bogus caplen from libpcap"
authorSrinivasa Sarva <srinivasa.sarva@oracle.com>
Mon, 16 Jul 2012 10:44:29 -0700
changeset 916 fb0329e47bf5
parent 915 aa3e7c7b6d46
child 917 c2d902bbacc9
7181574 nmap fails with "bogus caplen from libpcap"
components/nmap/patches/tcpip.cc.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/nmap/patches/tcpip.cc.patch	Mon Jul 16 10:44:29 2012 -0700
@@ -0,0 +1,14 @@
+--- nmap-5.51/tcpip.cc.orig	2012-07-12 12:01:16.192754248 -0700
++++ nmap-5.51/tcpip.cc	2012-07-12 12:02:28.509427779 -0700
+@@ -1319,6 +1319,11 @@
+     offset = 16;
+     break;
+ #endif
++#ifdef DLT_IPNET
++  case DLT_IPNET:
++    offset = 24;
++    break;
++#endif
+   default:
+     p = (char *) pcap_next(pd, &head);
+     if (head.caplen == 0) {