I refer to this thread : how to split a pcap file into a set of smaller ones
I have tried to use the command tcpdump -r old_file -w new_files -C 4096 and tcpdump returns tcpdump: invalid file size 4096
So far I have tested until 2048 (x1,000,000 bytes) and it successfully split files into 2GB each for a large pcap file. Is there anyway, to split a large pcap file (eg 20GB) into a smaller files with 4GB each?
CFlag seem to be declared as an
int... It might be possible to patchnetdissect.hto us anunsigned int, alongorlong long(depending on the architecture) for it...The other options from the other question might not be limited by the size of an
– Gert van den Berg Nov 28 '14 at 06:47int?