I’ve written a C program which write a valid PCAP file into a malloc’ed chunk of memory:
u_char* myPCAP = writePCAP( ... );
The program works won