35ac3b7309
full changelog available at http://nmap.org/changelog.html Nping needs a very current libpcap to work as root
27 lines
965 B
Plaintext
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());
|