Fix PCAP packet header timestamp
This commit is contained in:
parent
2e69d024a5
commit
10a73c9380
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user