Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2025 12:51:26 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Guido Falsi <madpilot@FreeBSD.org>
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:  <1699210246.52160.1744195886991@localhost>
In-Reply-To: <1b9603d8-7128-4809-9926-048426db122e@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>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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.

Regards,
Ronald.

 
Van: Guido Falsi <madpilot@FreeBSD.org>
Datum: woensdag, 9 april 2025 12:17
Aan: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>, FreeBSD Current <freebsd-current@freebsd.org>, net@FreeBSD.org
Onderwerp: Re: RFC: Implementation of RFC 7217 [A Method for Generating Semantically Opaque Interface Identifiers, with IPv6 Stateless Address Autoconfiguration (SLAAC)]
> 
> On 4/6/25 23:38, Marek Zarychta wrote:
> > W dniu 6.04.2025 o 16:49, Guido Falsi pisze:
> >> Hi!
> >>
> >> I have recently implemented and tested the patch at [1], which >> implements RFC 7217, about generating IPv6 addresses that are constant >> through reboots, but do not expose the MAC address of the machine, not >> being in any way derived by those.
> >>
> >> I'd like to get comments, testing and review for this patch, with the >> objective of getting approval to commit it to head once it is >> streamlined enough.
> >>
> >> BTW I'd like to thank cognet for his suggestions and help with the >> patch, in particular his help in finding the correct way to implement >> the dad_failures counter.
> >>
> >>
> >> And thanks in advance to anyone willing to give feedback!
> >>
> >>
> >> [1] https://reviews.freebsd.org/D49681
> >>
> > This is great news for the community !
> >
> > I've already started testing it on both a desktop and a laptop - which > is probably even more valuable, especially since the laptop will be > connecting to various networks. If I encounter any issues, I will post > comments in the review.
> 
> I posted an updated patch, addressing feedback and containing some more improvements.
> 
> If testing this new patch, the flag needs to be activated per interface with ifconfig(8) now, or via tunable in loader.conf.
> 
> Should generate the same addresses it was generating before, with the only exception of the (relatively improbable) case that the previous patch was generating a reserved IPv6 address, which is now checked for and another one generated in such a case.
> 
> -- 
> Guido Falsi <madpilot@FreeBSD.org>
>  
> 
> 
> 

 
[-- Attachment #2 --]
<html><head></head><body>Hi,<br>
<br>
Next to hostuuid you could add a jailname in the mix.<br>
<br>
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.<br>
<br>
Regards,<br>
Ronald.<br>
<br>
&nbsp;
<p><strong>Van:</strong> Guido Falsi &lt;madpilot@FreeBSD.org&gt;<br>
<strong>Datum:</strong> woensdag, 9 april 2025 12:17<br>
<strong>Aan:</strong> Marek Zarychta &lt;zarychtam@plan-b.pwste.edu.pl&gt;, FreeBSD Current &lt;freebsd-current@freebsd.org&gt;, net@FreeBSD.org<br>
<strong>Onderwerp:</strong> Re: RFC: Implementation of RFC 7217 [A Method for Generating Semantically Opaque Interface Identifiers, with IPv6 Stateless Address Autoconfiguration (SLAAC)]</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P">On 4/6/25 23:38, Marek Zarychta wrote:<br>
&gt; W dniu 6.04.2025 o&nbsp;16:49, Guido Falsi pisze:<br>
&gt;&gt; Hi!<br>
&gt;&gt;<br>
&gt;&gt; I have recently implemented and tested the patch at [1], which &gt;&gt; implements RFC 7217, about generating IPv6 addresses that are constant &gt;&gt; through reboots, but do not expose the MAC address of the machine, not &gt;&gt; being in any way derived by those.<br>
&gt;&gt;<br>
&gt;&gt; I'd like to get comments, testing and review for this patch, with the &gt;&gt; objective of getting approval to commit it to head once it is &gt;&gt; streamlined enough.<br>
&gt;&gt;<br>
&gt;&gt; BTW I'd like to thank cognet for his suggestions and help with the &gt;&gt; patch, in particular his help in finding the correct way to implement &gt;&gt; the dad_failures counter.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; And thanks in advance to anyone willing to give feedback!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; [1] <a href="https://reviews.freebsd.org/D49681">https://reviews.freebsd.org/D49681</a><br>;
&gt;&gt;<br>
&gt; This is great news for the community !<br>
&gt;<br>
&gt; I've already started testing it on both a desktop and a laptop - which &gt; is probably even more valuable, especially since the laptop will be &gt; connecting to various networks. If I encounter any issues, I will post &gt; comments in the review.<br>
<br>
I posted an updated patch, addressing feedback and containing some more improvements.<br>
<br>
If testing this new patch, the flag needs to be activated per interface with ifconfig(8) now, or via tunable in loader.conf.<br>
<br>
Should generate the same addresses it was generating before, with the only exception of the (relatively improbable) case that the previous patch was generating a reserved IPv6 address, which is now checked for and another one generated in such a case.<br>
<br>
--&nbsp;<br>
Guido Falsi &lt;madpilot@FreeBSD.org&gt;<br>
&nbsp;</div>

<hr></div>
</blockquote>
<br>
&nbsp;</body></html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1699210246.52160.1744195886991>