Which DOCA sample can identify packet types (TCP, UDP, ICMP, etc.)?

Hi,

I’ve been testing the eth_l2_fwd sample and it works fine for simple packet forwarding between two interfaces.
Now I’d like to inspect the traffic — for example, to detect whether each packet is TCP, UDP, ICMP, or something else.

Before I start modifying the code manually, I wanted to ask:

Is there any DOCA sample that already demonstrates how to parse and identify packet types or protocols (like inspecting Ethernet / IP / TCP headers)?

Basically I’m looking for something similar to a “packet analyzer” example — maybe something in the SDK that already decodes L3/L4 headers or uses DOCA Flow for classification.

Any suggestions or references would be really appreciated.

Thanks,

Hi tuanama,

You can refer to Doca Flow(https://docs.nvidia.com/doca/archive/2-5-3/doca+flow/index.html#src-3483841432_DOCAFlow-Introduction)

For further inquiries and assistance, please contact doca-feedback@nvidia.com.

Thanks,

Quanying