aboutsip / pkts

Pure java based pcap library capable of reading and writing to/from pcaps.
Other
198 stars 92 forks source link

Missing method to specify the arrival time when creating Packets from scratch. #104

Open axelpodehl opened 5 years ago

axelpodehl commented 5 years ago

When writing data packets (read from another source, timestamped) into a PCAP file, it would be be nice to be able to set the arrival time to the time of that packet. And NOT the current system time.

In other words, I'm looking for a new method TransportPacketFactory.create(...,long arrivalTime) where I can explicitly specify the time of that packet. My processing time, is not the same as the packet's reception time.

jonbo372 commented 5 years ago

Yep, good one. I'll see when I get to it but of course, pull requests are welcome!