Fix PCAP packet header timestamp

This commit is contained in:
George Oikonomou 2014-01-22 17:32:08 +00:00
parent 2e69d024a5
commit 10a73c9380

View File

@ -46,7 +46,7 @@ public class PcapExporter {
}
try {
/* pcap packet header */
out.writeInt((int) System.currentTimeMillis() / 1000);
out.writeInt((int) (System.currentTimeMillis() / 1000));
out.writeInt((int) ((System.currentTimeMillis() % 1000) * 1000));
out.writeInt(data.length);
out.writeInt(data.length);