I would like to know how do you usually proceed to retrieve and share the same packet read from NIC port between two different processes ? I try to work in zero-copy way.
The first process job consists in parsing the packet and make some protocol statistics. The second one dumps the same packet into pcap file for further analysis with wireshark for example.
Thank you for your help.