Trying to access packet information that is saved in result.
Need to use the information to save result to a pcap file for further processing.
How can you get the output of libprotoident to be saved in a pcap format? Ideally I want to add the packet information output by libprotoident to the actual packet in the form of a flag.
In file lpi_protoident.cc under tools/protoident
Trying to access packet information that is saved in result.
Need to use the information to save result to a pcap file for further processing.
How can you get the output of libprotoident to be saved in a pcap format? Ideally I want to add the packet information output by libprotoident to the actual packet in the form of a flag.
This is the relevant function:
static void per_result(libtrace_t trace, libtrace_thread_t sender, void global, void tls, libtrace_result_t *result) {
}
Thank you for your help.