DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] IPv6 header misleading comment
@ 2021-02-25 11:16 Levend Sayar
  0 siblings, 0 replies; only message in thread
From: Levend Sayar @ 2021-02-25 11:16 UTC (permalink / raw)
  To: dev

Hi, all.

Comment for payload_len is misleading. It says "includes header size".
In fact, payload_len does not include IPv6 header size.
As the name implies, only payload size + plus extensions size if any.

struct rte_ipv6_hdr {
	rte_be32_t vtc_flow;	/**< IP version, traffic class & flow label. */
	rte_be16_t payload_len;	/**< IP packet length - includes header size */
	uint8_t  proto;		/**< Protocol, next header. */
	uint8_t  hop_limits;	/**< Hop limits. */
	uint8_t  src_addr[16];	/**< IP address of source host. */
	uint8_t  dst_addr[16];	/**< IP address of destination host(s). */
} __rte_packed;


Best,

Levend

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-25 11:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 11:16 [dpdk-dev] IPv6 header misleading comment Levend Sayar

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).