]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd/l3fwd_lpm.h
net: add rte prefix to ip structure
[dpdk.git] / examples / l3fwd / l3fwd_lpm.h
index 323f853eeef650002420569af382f587d0b0c608..296c11af3722772b6d1479ab02bc6c46b54b5be6 100644 (file)
@@ -10,14 +10,14 @@ l3fwd_lpm_simple_forward(struct rte_mbuf *m, uint16_t portid,
                struct lcore_conf *qconf)
 {
        struct rte_ether_hdr *eth_hdr;
-       struct ipv4_hdr *ipv4_hdr;
+       struct rte_ipv4_hdr *ipv4_hdr;
        uint16_t dst_port;
 
        eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
 
        if (RTE_ETH_IS_IPV4_HDR(m->packet_type)) {
                /* Handle IPv4 headers.*/
-               ipv4_hdr = rte_pktmbuf_mtod_offset(m, struct ipv4_hdr *,
+               ipv4_hdr = rte_pktmbuf_mtod_offset(m, struct rte_ipv4_hdr *,
                                                   sizeof(struct rte_ether_hdr));
 
 #ifdef DO_RFC_1812_CHECKS