How to transform .dump to .pcap?

No replies
Lucass
Offline
Joined: 11/26/2016

I am working on a packet decoding project. A part of work is to read packet size from .pcap files and .dump files. However, my codes are doing well in .pcap files but not work in .dump files. For example, when I use packet.size() on .pcap files, the results are correct. Using packet.size() on .dump files, comes out 42 bytes, however, there is no 42 bytes packet in the file. Is there any methods to transform .dump files to .pcap files or packet.size() in .dump files is wrong used? Thank you.