From nobody Wed May 7 16:59:49 2025 X-Original-To: net@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 4Zt1hm2SBlz5wVHL; Wed, 07 May 2025 16:59:52 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zt1hm1ZDbz3WSL; Wed, 07 May 2025 16:59:52 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746637192; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=tJQi/REVHL9eJ4sxlVYyQftnSuzz3vpbYKGmKcafswQ=; b=G/UUXXXGYlZ4tv8AXUI38gGBhLEG4hb/ZT0m2whAQ2AVoKDQzcpEqdyxVLbMhj8ubpyFUH u6chFYxgxRN44wHxjQAkT5fVSRvTcq4ZMKbXAkRBNv4M6vW33TViqrLxwD7C1C3VqpinsM 1DINJ6HtvIz9fQLct+MEdg85Jz6lE/4qmFLNgVrswPOtTZ/GyXT64AmL5rHPqujA35KoMO VtBOjivrss/+mKJ9LWGC+p+8+r0SCTaBbCT+ku2psqE8h3Bqz1hebnkwNFQiw2o/68aqWS mQkwr64AWeaV7M9ghjd/D0S2GUw6MAGOk4eKuHNz/AB8wM6q6at9Ges6HnW7zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746637192; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=tJQi/REVHL9eJ4sxlVYyQftnSuzz3vpbYKGmKcafswQ=; b=ZoRdDaKLFcIQpNUx4fg3f5hRO56hMzdidEy+1DsPynAWX1F8+xzfCE7q0UA2vzZTKllb7q N+4kYvX359Cd/Gt2eReFaie6tIMUaXsnhD1XnHicAWUIZ2M+zWTCu6FCDc21MaxLJS9GYc yHipgKJg6CcNKK3+6ExWdrSRLSW3gvbXIntGkWOrnhGu2NloQaakMkz5mqv6DmHKixL+wQ Go+BJlmDBDBSnZ2eEVVaq2+YOM4Hk29Wbnwx/9RjaYs+EsMkT8fgjNgxFPGWEf0fnNtQrN 6TA1a+AkuglWxqiCg6SHpjE8ccxtA3grDCV6daiT1W5HfoUtbvv0r70gSBQcZg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746637192; a=rsa-sha256; cv=none; b=vZ0kddFvobynAGaBm0sHcSb5EVyTIIUmIY0PjRwArwMJPGKYJoPLgTUijHpb0hr0UKUFID cOA98Ru/BkQxeWeQs2G0xAUmb+Z8VS/KOmjuNag6nXJ6vGkHWhLrFbNDuuoyNoIvVMo5od kuIAa18Y7GVaLhtMKhaD5P+UaUPurAHMND4gM2e7o+nTl59hhHWKeyr46jSsK1PjpLd1Dg EIMbYufTdVvWU+9OHNFn8E9CXQNvGEJIXUSaD5R9RVIIaB+21Mu2RyGs2hLMu5tmdnB3nw HopVAvFKZhd1nERW9nXfH1HpvdfKZLDcMJtwYfyKwCSHAiCtA9FtUcpYhUreFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [IPV6:2a01:e11:2002:4280::13:1] (unknown [IPv6:2a01:e11:2002:4280::13:1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: madpilot/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Zt1hl4V8rz9jT; Wed, 07 May 2025 16:59:51 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Message-ID: <595294ff-4a8e-4726-b0e7-9b3e2a50d866@FreeBSD.org> Date: Wed, 7 May 2025 18:59:49 +0200 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: RFC: Implementation of RFC 7217 [A Method for Generating Semantically Opaque Interface Identifiers, with IPv6 Stateless Address Autoconfiguration (SLAAC)] From: Guido Falsi To: Ronald Klop Cc: Marek Zarychta , FreeBSD Current , net@FreeBSD.org References: <45b17684-75ef-4953-b59a-3c3b483ba21b@FreeBSD.org> <61dfdcac-4893-4c4b-b7e2-48164f1f0c80@plan-b.pwste.edu.pl> <1b9603d8-7128-4809-9926-048426db122e@FreeBSD.org> <1699210246.52160.1744195886991@localhost> <6e3dd061-f377-4f20-bcd1-f1a5afeaa36f@FreeBSD.org> <0a6709f8-275c-4c18-b195-1333a44fd1a7@FreeBSD.org> Content-Language: en-US, it, en-GB Autocrypt: addr=madpilot@FreeBSD.org; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+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VR2EXAuZ2sWA dlKCNTlJMsaU/x70BV11Wd/ypnVzM68dfdQIIAj1iMFAD/lXGlEUmKXg5Ov2VQDlTntQoanC YrAg+8CttPzjrydgLZFq3hrtQmfc0se5yv1WHS69+BsUOG09RvvawUDZxUjW19kyeN9THaNR gow3kSuArUp6zSmJABEBAAHCwF8EGAEIAAkFAlMQe0ECGwwACgkQGuaGDlbL0pMN5wgA4bCk X/qwEVC06ToeR6C2putmSWQMgpDaqrv65Hubo+QGmg2P4ewTYQQ4g6oYWS03qHxqVVWhKz7F jfrV+dH8qbCLfSgIcvdBha7ayGZVrsiuMLKGbw36fcmkZPpSDOfHcP0XH8Z+u9CWj0xUkTxA lZ/7i6gYSUpG2JWNtdmE/X8VVEyXusCLwy0K0BI60A/4dRTIX3C4QKrJ3ZbUXegz70ynjHf+ lQMZ9IZKASoRMuS5FozPQh6abvmwZEPdf5I9riUElzvHrqJ8Bx0t3Pujdoth+yNHpnBxrtO8 LkQdrQ58P0SwcaIX33T2U9pG8bhu5YVR88FQ8OQ0cEsPBpDncg== In-Reply-To: <0a6709f8-275c-4c18-b195-1333a44fd1a7@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/9/25 13:19, Guido Falsi wrote: > On 4/9/25 13:10, Guido Falsi wrote: >> On 4/9/25 12:51, Ronald Klop wrote: >>> Hi, >>> >>> Next to hostuuid you could add a jailname in the mix. >>> >>> That is what ether_gen_addr(9) does to make it easier to prevent >>> collisions while copying jails around or run a jail on a readonly >>> shared base filesystem. >> >> The RFC is very clear on what should be used to derive the address, so >> I'm not very keen on adding things around. >> >> The UUID should be changed when copying jails that run in parallel, >> they ARE different machines. although I am also at fault here. >> >> But the jailname is the correct parameter? This would change the >> address if the name is changed, which could be ok I guess. >> >> I'd also add this parameter only if actually jailed, skipping it for >> the host. >> >> My real issue with this approach is, the RFC is quite detailed on hash >> parameters. Will the implementation still be conforming if adding >> local ones? >> >> > > BTW, this is easy to add and also add conditionally on being jailed or > not, I'd just like some consensus on this before adding, especially the > RFC compliance issue. > A small addition here: I have already taken a look, since the RFC provides for part of the algorithm to be configurable I have some code I'm testing (which I plan to submit after the present code is committed) to add a sysctl to choose what to use for hashing between interface ID, interface name and interface MAC (if that's something the interface has, while ethernet like interfaces are most common today, the world, as you all know, is not all ethernet). I plan to leave the default at the interface name though. -- Guido Falsi