net: replace IPv4/v6 constants with uppercase name
[dpdk.git] / examples / l2fwd-crypto / main.c
index afc658e..e282cb7 100644 (file)
@@ -396,7 +396,7 @@ l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
 
        eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
 
-       if (eth_hdr->ether_type != rte_cpu_to_be_16(RTE_ETHER_TYPE_IPv4))
+       if (eth_hdr->ether_type != rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4))
                return -1;
 
        ipdata_offset = sizeof(struct rte_ether_hdr);