From nobody Thu May 23 20:41:45 2024 X-Original-To: dev-commits-src-all@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 4Vlg7s39qTz5LHnV; Thu, 23 May 2024 20:41:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vlg7s2PK4z4490; Thu, 23 May 2024 20:41:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716496905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4oHxsZNZFFilJTcxsJ/5LKZ7HocGmKfO5x9Na+Ci+Xg=; b=fg6+IPQJDpEUSEYXE2aK/ECW/KCpI00YOcsntzsiHDV89oqUJ5ec5MpWdaUj1+ZeDUjJ/l XXrko9RJDqNC44H0oBRcetzbCN/5SVTQMQuR2aSa4ZXgngOeCjja4UVf0nTAaQbAIzG0q/ UK4jGRHW9A5UpeqcGFVxvqF1H/9RYPbjY7aS8S2o9BLn3Q/khRuQ2in5EvdaDHHyh5Bg3d 4EwnMYYa0FB/MV/7GVFAysAj49J6AcEy+rMQPnYoOKmQB5NGlNkVNreMjq7Cs5+QNk3but vdgT7NAN1jidbKkLGx2QFwlkOYu8jlE40jpTihQr7u1DOmXaHFu7UzqG6oMXzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716496905; a=rsa-sha256; cv=none; b=S26FjCw6etnKBix3Yd0j57MzBeAcsUIi1ZLzpXeDbJ0ZJ7VViLih+pKAm3FAY90KHIqtUe yXpSd5icZ2zQ8/zWy3JauHRSmlea6AAZgh77tK4h7F8s8uJApqb2lI8nxLvF9LOxlVmOtV SazQJhkaGsuOdbBLU0UGbbpvOONRdNi432mJPJO6uxo9dpSd0MvjEA19nE5JegJNejHypq QyGuiqarAMjdMeHQ+Alr7pD1BDCT6O3jJg+eb0FNmGaxsHJfAR/5wBQ872QLjgY6dF38rI IV35FEazCs7DQeM5nAlaEtXGPwR1Y8Iaiof4zVNaiPvFUOowtX/Vm918271ChA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716496905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4oHxsZNZFFilJTcxsJ/5LKZ7HocGmKfO5x9Na+Ci+Xg=; b=hvtJqieguwHNYIC6GrvUtq25hWfohcUQh++I0NUD40RYi0uWXWm9zX3XmciD1r+BW5XjT0 6cwcS4nkdg2TEnpiusAsvJ01dBw7FsYJu2L0WhpBwb/KFy67JdUbqlCoUV5ILdQe4TZx21 UgwYckyt65wE6fAAKFQvtNcFAqpI1O7gv5/i4fFDWrnDiGIXvOXKMvlQRawzP0In5kKRGN ueXte0zfgHGMiK55iJgCH9py7rvkefTrTZEA/+8gHKyZiy/SrjVDCASQ6vgv+FXZaFBtnC txOwLPEq9mUosh/6iojzU8GTR+xXS9uHRqWAhL1+LyqLyiuRqTShh/24R6ULdQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vlg7s20f0z14GY; Thu, 23 May 2024 20:41:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44NKfj7A085860; Thu, 23 May 2024 20:41:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44NKfjcL085845; Thu, 23 May 2024 20:41:45 GMT (envelope-from git) Date: Thu, 23 May 2024 20:41:45 GMT Message-Id: <202405232041.44NKfjcL085845@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 1e8eb413f6c8 - main - netinet/icmp6: add PREF64 definitions (RFC 8781) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1e8eb413f6c8b0d7c44b9779f59fd1d33d2e6ac8 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1e8eb413f6c8b0d7c44b9779f59fd1d33d2e6ac8 commit 1e8eb413f6c8b0d7c44b9779f59fd1d33d2e6ac8 Author: Lexi Winter AuthorDate: 2024-04-26 21:33:13 +0000 Commit: Warner Losh CommitDate: 2024-05-23 20:40:11 +0000 netinet/icmp6: add PREF64 definitions (RFC 8781) Reviewed by: imp, glebius (prior suggetions done) Pull Request: https://github.com/freebsd/freebsd-src/pull/1206 --- sys/netinet/icmp6.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h index 4368fd2a0fcf..05f4737e8fd9 100644 --- a/sys/netinet/icmp6.h +++ b/sys/netinet/icmp6.h @@ -307,7 +307,8 @@ struct nd_opt_hdr { /* Neighbor discovery option header */ #define ND_OPT_ROUTE_INFO 24 /* RFC 4191 */ #define ND_OPT_RDNSS 25 /* RFC 6106 */ #define ND_OPT_DNSSL 31 /* RFC 6106 */ -#define ND_OPT_MAX 31 +#define ND_OPT_PREF64 38 /* RFC 8781 */ +#define ND_OPT_MAX 38 struct nd_opt_prefix_info { /* prefix information */ u_int8_t nd_opt_pi_type; @@ -373,6 +374,14 @@ struct nd_opt_dnssl { /* DNSSL option (RFC 6106) */ /* followed by list of DNS search domains */ } __packed; +struct nd_opt_pref64 { /* PREF64 option (RFC 8781) */ + u_int8_t nd_opt_pref64_type; + u_int8_t nd_opt_pref64_len; + /* bits 0-12 are the SL, bits 13-15 are the PLC */ + u_int16_t nd_opt_pref64_sl_plc; + char nd_opt_prefix[12]; +} __packed; + /* * icmp6 namelookup */