switch (first_m_seg->ol_flags & (PKT_TX_IPV4 | PKT_TX_IPV6)) {
case PKT_TX_IPV4: {
- const struct ipv4_hdr *iphe4;
+ const struct rte_ipv4_hdr *iphe4;
- iphe4 = (const struct ipv4_hdr *)(hdr_addr + iph_off);
+ iphe4 = (const struct rte_ipv4_hdr *)(hdr_addr + iph_off);
rte_memcpy(&packet_id, &iphe4->packet_id, sizeof(uint16_t));
packet_id = rte_be_to_cpu_16(packet_id);
break;