]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/sample_app_ug/flow_classify.rst
net: add rte prefix to tcp structure
[dpdk.git] / doc / guides / sample_app_ug / flow_classify.rst
index 8172a96c42d2a1f91e6a6a1c4c914fb0f6104456..1b354c31abd31ff771df533b14e3850019255c1b 100644 (file)
@@ -126,7 +126,7 @@ initialisation of the ``Flow Classify`` application..
             .input_index = SRCP_DESTP_INPUT_IPV4,
             .offset = sizeof(struct rte_ether_hdr) +
                 sizeof(struct rte_ipv4_hdr) +
-                offsetof(struct tcp_hdr, src_port),
+                offsetof(struct rte_tcp_hdr, src_port),
         },
         {
              /* rte_flow uses a bit mask for protocol ports */
@@ -136,7 +136,7 @@ initialisation of the ``Flow Classify`` application..
              .input_index = SRCP_DESTP_INPUT_IPV4,
              .offset = sizeof(struct rte_ether_hdr) +
                  sizeof(struct rte_ipv4_hdr) +
-                 offsetof(struct tcp_hdr, dst_port),
+                 offsetof(struct rte_tcp_hdr, dst_port),
         },
     };