Date: Wed, 7 May 2025 18:59:49 +0200 From: Guido Falsi <madpilot@FreeBSD.org> To: Ronald Klop <ronald-lists@klop.ws> Cc: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>, FreeBSD Current <freebsd-current@freebsd.org>, net@FreeBSD.org Subject: Re: RFC: Implementation of RFC 7217 [A Method for Generating Semantically Opaque Interface Identifiers, with IPv6 Stateless Address Autoconfiguration (SLAAC)] Message-ID: <595294ff-4a8e-4726-b0e7-9b3e2a50d866@FreeBSD.org> In-Reply-To: <0a6709f8-275c-4c18-b195-1333a44fd1a7@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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <madpilot@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?595294ff-4a8e-4726-b0e7-9b3e2a50d866>
