From: Levend Sayar <levendsayar@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] IPv6 header misleading comment
Date: Thu, 25 Feb 2021 14:16:49 +0300 [thread overview]
Message-ID: <CAGDw98k721Yaq3AxMXbm+5y5DacWMHrekFtZgKhiGGHj6-mLVQ@mail.gmail.com> (raw)
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
reply other threads:[~2021-02-25 11:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGDw98k721Yaq3AxMXbm+5y5DacWMHrekFtZgKhiGGHj6-mLVQ@mail.gmail.com \
--to=levendsayar@gmail.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).