openbsd-ports/net/nmap/patches/patch-scan-engine_cc
giovanni 35ac3b7309 Update to version 5.51, lot of improvements since latest version,
full changelog available at http://nmap.org/changelog.html
Nping needs a very current libpcap to work as root
2011-03-28 09:01:24 +00:00

27 lines
965 B
Plaintext

--- scan_engine.cc.orig Fri Jan 21 01:04:16 2011
+++ scan_engine.cc Wed Feb 2 13:12:14 2011
@@ -108,6 +108,7 @@
#include <math.h>
#include <list>
#include <map>
+#include "sctp.h"
using namespace std;
extern NmapOps o;
@@ -4936,13 +4937,13 @@ static void begin_sniffer(UltraScanInfo *USI, vector<T
if (doIndividual){
pcap_filter="dst host ";
pcap_filter+=inet_ntoa(Targets[0]->v4source());
- pcap_filter+=" and (icmp or ((tcp or udp or sctp) and (";
+ pcap_filter+=" and (icmp or ((tcp or udp) and (";
pcap_filter+=dst_hosts;
pcap_filter+=")))";
}else{
pcap_filter="dst host ";
pcap_filter+=inet_ntoa(Targets[0]->v4source());
- pcap_filter+=" and (icmp or tcp or udp or sctp)";
+ pcap_filter+=" and (icmp or tcp or udp)";
}
}else assert(0);
if (o.debugging) log_write(LOG_PLAIN, "Packet capture filter (device %s): %s\n", Targets[0]->deviceFullName(), pcap_filter.c_str());