#include <stdint.h>
#include <netinet/in.h>
-#include <rte_memcpy.h>
#include <rte_byteorder.h>
#include <rte_mbuf.h>
{
uint16_t cksum;
cksum = rte_raw_cksum(ipv4_hdr, sizeof(struct ipv4_hdr));
- return ((cksum == 0xffff) ? cksum : ~cksum);
+ return (cksum == 0xffff) ? cksum : ~cksum;
}
/**