aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip6.h
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@gmail.com>2023-10-28 02:50:18 +0000
committerMark Johnston <markj@FreeBSD.org>2024-01-03 17:56:28 +0000
commitb0e13f785b336670bdf39b83a78435b00d00f43c (patch)
tree190e0abf87664ae47d960c77d74a331eb17b9fcd /sys/netinet/ip6.h
parent943a9f4e470c3d45e4e93e3c91449b8c369c27ab (diff)
Diffstat (limited to 'sys/netinet/ip6.h')
-rw-r--r--sys/netinet/ip6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h
index 9807e6a1780a..2f61d594e59d 100644
--- a/sys/netinet/ip6.h
+++ b/sys/netinet/ip6.h
@@ -95,10 +95,12 @@ struct ip6_hdr {
#if BYTE_ORDER == BIG_ENDIAN
#define IPV6_FLOWINFO_MASK 0x0fffffff /* flow info (28 bits) */
#define IPV6_FLOWLABEL_MASK 0x000fffff /* flow label (20 bits) */
+#define IPV6_ECN_MASK 0x00300000 /* ECN code point (2 bits) */
#else
#if BYTE_ORDER == LITTLE_ENDIAN
#define IPV6_FLOWINFO_MASK 0xffffff0f /* flow info (28 bits) */
#define IPV6_FLOWLABEL_MASK 0xffff0f00 /* flow label (20 bits) */
+#define IPV6_ECN_MASK 0x00003000 /* ECN code point (2 bits) */
#endif /* LITTLE_ENDIAN */
#endif
#define IPV6_FLOWLABEL_LEN 20