From nobody Mon Jan 15 12:13:46 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TD9zM3w7Xz56nqq; Mon, 15 Jan 2024 12:13:51 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TD9zM3Ng5z4Psv; Mon, 15 Jan 2024 12:13:51 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705320831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1JJ3cuuxUBssWeohnRnVmy+GJff+CuI1mg+8DhCPDwY=; b=hGzyO/hMKKeABq0Q6skZtgaNyi5/qbIB040NrIPih9Sdk93N+o1VdH7bOMpXRlpdTmF/i4 J8TedtfzRsaG00QnuKaN0cw+1DzWe2D58O9+r+02AwzajbbxyhsqqEZS7o3CQIU34v1qar KJ35eijBbOFlYndFfd+FTcfifaaqX097GaSxDd0+IjMDataEwzZMUI373Dk3L39AkvS/3B 8Wq3vzVOVCHAI9Yy5jKnqc2BOirk3RTl7TO6m8Dfy8cIN9SPIldlmWyHM6g0Cdi9JTOZi+ cNMAf3Jo8XHWcN0WOlfI+pO4Hn/Xwitci9X/jTnEx8hcIRnBOB+3SlRmrEXgfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705320831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1JJ3cuuxUBssWeohnRnVmy+GJff+CuI1mg+8DhCPDwY=; b=hhp2dnduEmLwM5wR/Kd4Mt/sn8Wk4hS8JCqMvzl8CJfu3Fi0GWRuX5uznwjdmTLoXBMOYB u7YlVhN/2XUpwY333mu6wS7Kmq0RVLAcK3PPV+h1miokCVatkBLzUWm25EG9c7LJLwPbG5 +k1jR1KMsSJmbqeYRh/Ox/YRXT0v9rxwgRTCctPJzLXsCtnatWs+6usGONe+ZNgQqhmXBH wae6rfTdBrcjHwQ+tQN/7ZcKj/Mnz4HWYWUnZ90Re7t8+RT34fgf3yxnBJxT6o9nDz6mXs MriDhOPnkyA2BWVlOQ1EkB0XmAnbBcwkb/UmOPMx86Kz/2ZX5YUO4s9N1MwJKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705320831; a=rsa-sha256; cv=none; b=OSnxgA+Qju/MktJz3rYhXB7oenDz90EebtyZ6yQM83GScCjUfxL3Bhg/LkxdFFC9OZ11Xc hAnU3uqdJdt/sKCCAaNvBTZ6L6uUBSbL3s/s936f+4Dg42lPi8JMBSJEQ+wgnL68u/z3eG i1PCaIfA1cSxIsl44uaUb5Z5YQMjVyaEl+1MYn3+eGrmd5oKrMuf4pim/0K/aVlsFk1xB6 jKUxgte9ea/u79HWtUSkpoP/p70vVoMa2ayKahmNRyGUQAaRP2qbPk+XcRvGMHdz9GBHYS Wx2CLXD14OdO5x2rtZgk3IBWt7E8u6fIWZbwXBbJKeK8aj0veF6ilmlUUlLpeg== Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TD9zM18TTzF1W; Mon, 15 Jan 2024 12:13:51 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C50088D4A17B; Mon, 15 Jan 2024 12:13:49 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id ADD4D2D029D8; Mon, 15 Jan 2024 12:13:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id hL9T5AFQxrYw; Mon, 15 Jan 2024 12:13:47 +0000 (UTC) Received: from strong-aiccu0.sbone.de (strong-aiccu0.sbone.de [IPv6:fde9:577b:c1a9:f491::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 45B932D029D2; Mon, 15 Jan 2024 12:13:47 +0000 (UTC) Date: Mon, 15 Jan 2024 12:13:46 +0000 (UTC) From: "Bjoern A. Zeeb" To: Mark Johnston cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: b0e13f785b33 - main - netinet: Define IPv6 ECN mask In-Reply-To: <202401031832.403IWu1A018909@gitrepo.freebsd.org> Message-ID: <6o0q4p2s-qsp0-qs68-95q5-p67o7rn07070@SerrOFQ.bet> References: <202401031832.403IWu1A018909@gitrepo.freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Wed, 3 Jan 2024, Mark Johnston wrote: > The branch main has been updated by markj: > > URL: https://cgit.FreeBSD.org/src/commit/?id=b0e13f785b336670bdf39b83a78435b00d00f43c > > commit b0e13f785b336670bdf39b83a78435b00d00f43c > Author: Jose Luis Duran > AuthorDate: 2023-10-28 02:50:18 +0000 > Commit: Mark Johnston > CommitDate: 2024-01-03 17:56:28 +0000 > > netinet: Define IPv6 ECN mask > > Define a mask for the code point used for ECN in the Traffic Class field > (2 bits) of an IPv6 header. > > BE: 0 0 3 0 0 0 0 0 > Bit: 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ > |Version| Traffic Class | Flow Label | > +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ > | ... | > > For BE (Big Endian), or network-byte order, this corresponds to 0x00300000. > For Little Endian, it corresponds to 0x00003000. I would really appreciate if these (supposedly excepts) came with a reference to an RFC (ideally with section). > Reviewed by: imp, markj > MFC after: 1 week > Pull Request: https://github.com/freebsd/freebsd-src/pull/879 > --- > sys/netinet/ip6.h | 2 ++ > 1 file changed, 2 insertions(+) > > 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 > -- Bjoern A. Zeeb r15:7