net: add rte prefix to ip structure
[dpdk.git] / examples / l2fwd-crypto / main.c
index e94eccc..821112f 100644 (file)
@@ -387,7 +387,7 @@ l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
                struct l2fwd_crypto_params *cparams)
 {
        struct rte_ether_hdr *eth_hdr;
-       struct ipv4_hdr *ip_hdr;
+       struct rte_ipv4_hdr *ip_hdr;
 
        uint32_t ipdata_offset, data_len;
        uint32_t pad_len = 0;
@@ -400,7 +400,7 @@ l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
 
        ipdata_offset = sizeof(struct rte_ether_hdr);
 
-       ip_hdr = (struct ipv4_hdr *)(rte_pktmbuf_mtod(m, char *) +
+       ip_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(m, char *) +
                        ipdata_offset);
 
        ipdata_offset += (ip_hdr->version_ihl & IPV4_HDR_IHL_MASK)