# HG changeset patch # User Srinivasa Sarva # Date 1342460669 25200 # Node ID fb0329e47bf5472bac9cf00f1427ebc12e3d2367 # Parent aa3e7c7b6d46da8fc26797e7e01b40c938d5d55d 7181574 nmap fails with "bogus caplen from libpcap" diff -r aa3e7c7b6d46 -r fb0329e47bf5 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) {