[Bug 245103] IPv6: update v6 temporary address lifetime according to rfc4941bis

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 May 2024 19:16:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245103

--- Comment #16 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> ---
(In reply to Kurt Jaeger from comment #15)

I am testing the patch on my 15-CURRENT build for 10+ months. At the moment it
is FreeBSD 15.0-CURRENT #4 main-n270125-050555e12978-dirty from Mon May 13
18:30:49 CEST 2024. I see no problems, at least with timers set:
net.inet6.ip6.temppltime: 86400 and net.inet6.ip6.tempvltime: 172800.

After changing the timers to values:
net.inet6.ip6.temppltime: 86400 -> 3000
net.inet6.ip6.tempvltime: 172800 -> 6000
and restarting netif service ifconfig displays:

bge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
        (....)
        inet6 2a02:xxxx:xxxx:xxxx:df98:c3a3:d688:c5f2 prefixlen 64 autoconf
temporary pltime 2835 vltime 6000

After one hour:
        inet6 2a02:xxxx:xxxx:xxxx:df98:c3a3:d688:c5f2 prefixlen 64 deprecated
autoconf temporary pltime 0 vltime 2735
        inet6 2a02:xxxx:xxxx:xxxx:80cb:a5c:acd:847f prefixlen 64 autoconf
temporary pltime 2571 vltime 5571

After next hour:

        inet6 2a02:xxxx:xxxx:xxxx:df98:c3a3:d688:c5f2 prefixlen 64 deprecated
autoconf temporary pltime 0 vltime 191
        inet6 2a02:xxxx:xxxx:xxxx:80cb:a5c:acd:847f prefixlen 64 deprecated
autoconf temporary pltime 27 vltime 3027
        inet6 2a02:xxxx:xxxx:xxxx:5f7b:192a:1644:b288 prefixlen 64 autoconf
temporary pltime 2835 vltime 6000

a few minutes later:

        inet6 2a02:xxxx:xxxx:xxxx:80cb:a5c:acd:847f prefixlen 64 deprecated
autoconf temporary pltime 27 vltime 3027
        inet6 2a02:xxxx:xxxx:xxxx:5f7b:192a:1644:b288 prefixlen 64 autoconf
temporary pltime 2835 vltime 6000

So with this patch applied, the depraciation and removal of temporary addresses
seem to work correctly.

The -L option for ifconfig doesn't seem change anything on unpatched stable/14
either. So the regression was not introduced by Fernando's patch.

The ndp timers look strange indeed, starting at 1 day in a few seconds they
decrease to seconds, then expire and after renewal, the story repeats. FreeBSD
stable/14 with static IPv6 address, without Fernando's patch applied behaves in
the same way so I dont't blame this patch for NDP breakage. Perhaps the
transition to netlink introduced a flaw similar to that seen in bug 277063 or
mayby it was broken even earlier ?

-- 
You are receiving this mail because:
You are the assignee for the bug.