Doca_flow - how to match ICMP?

How would one go about matching ICMP traffic with doca_flow?

Using the samples I can match TCP traffic, for example by setting my doca_flow_match fields like:

match.out_l4_type = DOCA_PROTO_TCP;

However, there appear to be DOCA_PROTO_ defines for TCP and UDP. I did notice that the define values correspond to the IANA protocol numbers for these TCP - 6, and UDP - 17. So I tried specifying 1 as ICMP is 1 but that resulted in an error.

So, how might one go about setting up a match for ICMP traffic?


This was sorted out. ICMP is supported on 2.0.2. We had been working with 1.5.1.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.