Wireshark / Tshark pcap reassemble code

403 Views Asked by At

Does anybody know where within tshark or wireshark the code is that I could use to reassemble pcap files? I am working on an app and need to reassemble pcap files, but don't need the other functionality of wireshark / tshark...so, hoping to use this as guidance.

Thanks.

2

There are 2 best solutions below

0
On

mergecap (from wireshark suite) will merge two or more pcap files.

0
On

If it's tcpdump file (not ng format), you can throw away the first 24 bytes (file header) of the second file and concatenate the rest to the first file, then you do the same for all the other files.