Commit ac8ed058 authored by garciay's avatar garciay

Add capability to capture without PCAP filter

parent e61c9f07
......@@ -101,6 +101,7 @@ public class PcapMultiplexer implements Runnable {
}
captureThread = new Thread(this);
captureThread.start();
if (frameType != 0) {
filter = String.format("ether proto 0x%04x", frameType);
System.out.println("New filter: " + filter);
......@@ -113,6 +114,7 @@ public class PcapMultiplexer implements Runnable {
System.out.println("Filter error: " + pcap.getErr());
}
pcap.setFilter(bpfFilter);
} // else, no filter
dumper = pcap.dumpOpen(client.getFileName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment