Mercurial > stress-tester
changeset 1079:b6397f2033d9
PcapUnidirectionalRawPacketWorker bugfix
author | Devel 2 |
---|---|
date | Wed, 29 Apr 2020 14:45:25 +0200 |
parents | 844bc5ceadef |
children | f93f0bfb7338 |
files | stress-tester/src/main/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketWorker.java |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketWorker.java Wed Apr 29 11:06:52 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketWorker.java Wed Apr 29 14:45:25 2020 +0200 @@ -63,11 +63,10 @@ LOGGER.debug("Pcap instance for device {} created.", device); } - if (dumpFile == null) { pcapInstance = new PcapInstance(new PcapOutput.Sender(pcap)); } else { - PcapDumper pcapDumper = PcapDumper.open(pcap, "c:/tmp/st/netflow/out.pcap", sb); + PcapDumper pcapDumper = PcapDumper.open(pcap, dumpFile, sb); pcapInstance = new PcapInstance(new PcapOutput.Writer(pcap, pcapDumper)); } @@ -85,7 +84,7 @@ throw new IOException("Unable to send packet. Pcap error: " + pcap.pcap().getErr()); } - return res; + return length; } @Override