net: add rte prefix to UDP structure
[dpdk.git] / lib / librte_net / rte_net.c
index 4a46df5..e1868f7 100644 (file)
@@ -357,11 +357,11 @@ l3:
        }
 
        if ((pkt_type & RTE_PTYPE_L4_MASK) == RTE_PTYPE_L4_UDP) {
-               hdr_lens->l4_len = sizeof(struct udp_hdr);
+               hdr_lens->l4_len = sizeof(struct rte_udp_hdr);
                return pkt_type;
        } else if ((pkt_type & RTE_PTYPE_L4_MASK) == RTE_PTYPE_L4_TCP) {
-               const struct tcp_hdr *th;
-               struct tcp_hdr th_copy;
+               const struct rte_tcp_hdr *th;
+               struct rte_tcp_hdr th_copy;
 
                th = rte_pktmbuf_read(m, off, sizeof(*th), &th_copy);
                if (unlikely(th == NULL))
@@ -493,11 +493,11 @@ l3:
        }
 
        if ((pkt_type & RTE_PTYPE_INNER_L4_MASK) == RTE_PTYPE_INNER_L4_UDP) {
-               hdr_lens->inner_l4_len = sizeof(struct udp_hdr);
+               hdr_lens->inner_l4_len = sizeof(struct rte_udp_hdr);
        } else if ((pkt_type & RTE_PTYPE_INNER_L4_MASK) ==
                        RTE_PTYPE_INNER_L4_TCP) {
-               const struct tcp_hdr *th;
-               struct tcp_hdr th_copy;
+               const struct rte_tcp_hdr *th;
+               struct rte_tcp_hdr th_copy;
 
                th = rte_pktmbuf_read(m, off, sizeof(*th), &th_copy);
                if (unlikely(th == NULL))