]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/ipsec-secgw.c
net: add rte prefix to IP structure
[dpdk.git] / examples / ipsec-secgw / ipsec-secgw.c
index d47cdd55cb1913a37465f8844b1094379fad0b61..fd81b6c2513942e23baa5026b2fbf1f1ae836f09 100644 (file)
@@ -341,7 +341,7 @@ prepare_tx_pkt(struct rte_mbuf *pkt, uint16_t port,
 
                /* calculate IPv4 cksum in SW */
                if ((pkt->ol_flags & PKT_TX_IP_CKSUM) == 0)
-                       ip->ip_sum = rte_ipv4_cksum((struct ipv4_hdr *)ip);
+                       ip->ip_sum = rte_ipv4_cksum((struct rte_ipv4_hdr *)ip);
 
                ethhdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPv4);
        } else {