DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] librte_net/rte_ip.h checksum functions question
@ 2017-07-18 12:18 Ido Barnea (ibarnea)
  2017-07-20  9:09 ` Olivier Matz
  0 siblings, 1 reply; 3+ messages in thread
From: Ido Barnea (ibarnea) @ 2017-07-18 12:18 UTC (permalink / raw)
  To: olivier.matz, konstantin.ananyev; +Cc: Hanoch Haim (hhaim), dev

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-20  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18 12:18 [dpdk-dev] librte_net/rte_ip.h checksum functions question Ido Barnea (ibarnea)
2017-07-20  9:09 ` Olivier Matz
2017-07-20  9:57   ` Ido Barnea (ibarnea)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).