Received: by mail.netbsd.org (Postfix, from userid 605) id BA7EC84DE1; Wed, 26 Dec 2018 08:55:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AED3D84DE0 for ; Wed, 26 Dec 2018 08:55:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 7xbvS-FGvwvr for ; Wed, 26 Dec 2018 08:55:15 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 211E784CCF for ; Wed, 26 Dec 2018 08:55:15 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 16B40FB16; Wed, 26 Dec 2018 08:55:15 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 26 Dec 2018 08:55:15 +0000 From: "Kengo NAKAHARA" Subject: CVS commit: src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20181226085515.16B40FB16@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Kengo NAKAHARA" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: knakahara Date: Wed Dec 26 08:55:14 UTC 2018 Modified Files: src/sys/net: if_ipsec.c src/sys/netipsec: key.c Log Message: Remove unnecessary addresses in PF_KEY message. MOBIKE Extensions for PF_KEY draft-schilcher-mobike-pfkey-extension-01.txt says ==================== 5. SPD Update // snip SADB_X_SPDADD: // snip sadb_x_ipsecrequest_reqid: An ID for that SA can be passed to the kernel in the sadb_x_ipsecrequest_reqid field. If tunnel mode is specified, the sadb_x_ipsecrequest structure is followed by two sockaddr structures that define the tunnel endpoint addresses. In the case that transport mode is used, no additional addresses are specified. ==================== see: https://tools.ietf.org/html/draft-schilcher-mobike-pfkey-extension-01 ipsecif(4) uses transport mode, so it should not add addresses. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/net/if_ipsec.c cvs rdiff -u -r1.258 -r1.259 src/sys/netipsec/key.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.