]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/sample_app_ug/ipv4_multicast.rst
net: add rte prefix to ip structure
[dpdk.git] / doc / guides / sample_app_ug / ipv4_multicast.rst
index 97bd756a20e27df99d0a896f30329d43cf65659c..0d89be96e14d5de11e2f30c58a0c50fdf5662c6d 100644 (file)
@@ -146,7 +146,7 @@ Firstly, the Ethernet* header is removed from the packet and the IPv4 address is
 
     /* Remove the Ethernet header from the input packet */
 
-    iphdr = (struct ipv4_hdr *)rte_pktmbuf_adj(m, sizeof(struct rte_ether_hdr));
+    iphdr = (struct rte_ipv4_hdr *)rte_pktmbuf_adj(m, sizeof(struct rte_ether_hdr));
     RTE_ASSERT(iphdr != NULL);
     dest_addr = rte_be_to_cpu_32(iphdr->dst_addr);