You are reading raw packet data through the use of Pcap4J, but are not writing [PCAP](https://wiki.wireshark.org/Development/LibpcapFileFormat) format files. You simply dump the raw packet data into a file. You need to add the file format structures are well.
↧