Работа над фильтрацией через libpcap

This commit is contained in:
serega6531
2020-04-13 00:45:48 +03:00
parent 88323dc883
commit 9720619eb8
7 changed files with 52 additions and 2 deletions

View File

@@ -37,6 +37,8 @@ public class LivePcapWorker extends AbstractPcapWorker {
log.info("Using interface " + device.getName());
pcap = device.openLive(65536, PcapNetworkInterface.PromiscuousMode.PROMISCUOUS, 100);
applyFilter();
try {
log.info("Intercept started");
pcap.loop(-1, this, loopExecutorService);