net: add rte prefix to ether structures
[dpdk.git] / examples / load_balancer / runtime.c
index 39a846a..f39681d 100644 (file)
@@ -507,9 +507,9 @@ app_lcore_worker(
                        }
 
                        pkt = lp->mbuf_in.array[j];
-                       ipv4_hdr = rte_pktmbuf_mtod_offset(pkt,
-                                                          struct ipv4_hdr *,
-                                                          sizeof(struct ether_hdr));
+                       ipv4_hdr = rte_pktmbuf_mtod_offset(
+                               pkt, struct ipv4_hdr *,
+                               sizeof(struct rte_ether_hdr));
                        ipv4_dst = rte_be_to_cpu_32(ipv4_hdr->dst_addr);
 
                        if (unlikely(rte_lpm_lookup(lp->lpm_table, ipv4_dst, &port) != 0)) {