Packet Header Extraction

Dear Community,

I am seeking guidance regarding the extraction of packet headers or the capture of packets using the DOCA framework. Specifically, I am interested in accessing the header information of each packet, commonly known as the “5-tuple,” which includes the source IP address, destination IP address, source port, destination port, and protocol type. My goal is to utilize this header information to perform various operations based on the characteristics of each packet.

I would greatly appreciate any insights, guidance, or resources that the community can provide regarding how to achieve this functionality within the DOCA framework.

Thank you for your assistance.

1 Like

We had a similar convo here DOCA FLOW pipe for getting/printing matched packet metadata.
Apparently, I have never managed to get access to packet headers/metadata using the DOCA flow API. It seems it does not have support for it, at least not on Bluefield-2. Maybe Bluefield-3 will have this feature.

To get packet data, I modified DPDK-L2FWD app to do it, but the performance will be affected for obvious reasons.