]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-crypto/main.c
net: replace IPv4/v6 constants with uppercase name
[dpdk.git] / examples / l2fwd-crypto / main.c
index afc658e5dc7f57e27dc6907784917685dbf881a7..e282cb7bf06b6a4b83210223bd88a2a25fd31e68 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);