net: add rte prefix to TCP structure
[dpdk.git] / examples / ip_pipeline / pipeline.c
index 9cc7e32..b627310 100644 (file)
@@ -664,7 +664,7 @@ static const struct rte_acl_field_def table_acl_field_format_ipv4[] = {
                .field_index = 3,
                .input_index = 3,
                .offset = sizeof(struct rte_ipv4_hdr) +
-                       offsetof(struct tcp_hdr, src_port),
+                       offsetof(struct rte_tcp_hdr, src_port),
        },
 
        /* Destination Port */
@@ -674,7 +674,7 @@ static const struct rte_acl_field_def table_acl_field_format_ipv4[] = {
                .field_index = 4,
                .input_index = 3,
                .offset = sizeof(struct rte_ipv4_hdr) +
-                       offsetof(struct tcp_hdr, dst_port),
+                       offsetof(struct rte_tcp_hdr, dst_port),
        },
 };
 
@@ -761,7 +761,7 @@ static const struct rte_acl_field_def table_acl_field_format_ipv6[] = {
                .field_index = 9,
                .input_index = 9,
                .offset = sizeof(struct rte_ipv6_hdr) +
-                       offsetof(struct tcp_hdr, src_port),
+                       offsetof(struct rte_tcp_hdr, src_port),
        },
 
        /* Destination Port */
@@ -771,7 +771,7 @@ static const struct rte_acl_field_def table_acl_field_format_ipv6[] = {
                .field_index = 10,
                .input_index = 9,
                .offset = sizeof(struct rte_ipv6_hdr) +
-                       offsetof(struct tcp_hdr, dst_port),
+                       offsetof(struct rte_tcp_hdr, dst_port),
        },
 };