Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The Wireshark Wiki page you point to says:

This only works with the de facto standard libpcap format version 2.4, as described in Development/LibpcapFileFormat, and with the standard pcapng format.

So all you need to do, when writing the capture file to the pipe, is write a pcapng file, with the comments in question.

There is, as far as I know, no programmatic way to do that other than to write your own code to write pcapng files, unless there's a Python library that writes pcapng files.