Filter and add extra fields in the pcap
Hi,
I know that with wireshark/tshark i can filter and analyze specific fields for an HTTP request like http.time.
Is there an option to export the original pcap plus the extra fields from a filter in a new pcap for example for every http request and add http.time as the delay field in the raw data ?
That is a generated field which Wireshark creates from data in the packet.
You could maybe store it in a packet comment if the file is saved in pcapng format.
Yes i need it to be saved additionally to the data from the packet for example as you said in a comment you thing that it is possible ?
I'm not sure what other tools you'll be using to process the pcapng, they may not handle comments.
Comments or in custom http header also would be interesting option
Adding/appending packet comments in pcapng file with the Lua API: here they started with Lua but after discussion looks like
editcap
and a shell script may be a good solution.Other ideas here