[dpdk-dev] librte_net/rte_ip.h checksum functions question

Ido Barnea (ibarnea) ibarnea at cisco.com
Tue Jul 18 14:18:20 CEST 2017


Hi,
Is it intentional that rte_ipv4_phdr_cksum and others in this file assume that ipv4 header is sizeof(struct ipv4_hdr), actually assuming that there are no IPv4 options?
If not, I would like to submit a patch changing that.
Something in the line of:
sizeof(struct ipv4_hdr) changes to ipv4_hdr->version_ihl & IPV4_HDR_IHL_MASK) * IPV4_IHL_MULTIPLIER)

Thanks,
Ido


More information about the dev mailing list