[dpdk-dev] IPv6 header misleading comment

Levend Sayar levendsayar at gmail.com
Thu Feb 25 12:16:49 CET 2021


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


More information about the dev mailing list