dhcpcd-discuss

Re: problem with expired prefix (dhcpv6)

Roy Marples

Fri Apr 21 17:55:23 2017

On 21/04/2017 15:44, Stuart Henderson wrote:
> install61.iso - standard cd iso
> install61.fs - image for dd'ing to an hd-like device
> 
> This should be a decent mirror for you:
> https://mirror.bytemark.co.uk/pub/OpenBSD/snapshots/amd64/

Nice, confirmed working.
Here is my proposed patch - I think I got the correct 5.9 version in there.

diff --git a/src/if-bsd.c b/src/if-bsd.c
index d2f0dc6..4cb78e2 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -785,7 +785,7 @@ if_address6(unsigned char cmd, const struct
ipv6_addr *ia)
         */

 #if !((defined(__NetBSD_Version__) && __NetBSD_Version__ >= 799003600) || \
-      (defined(__OpenBSD__)))
+      (defined(__OpenBSD__) && OpenBSD >= 201609))
        if (cmd == RTM_NEWADDR && !(ia->flags & IPV6_AF_ADDED)) {
                ifa.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
                ifa.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;
@@ -793,8 +793,8 @@ if_address6(unsigned char cmd, const struct
ipv6_addr *ia)
        }
 #endif

-#if defined(__OpenBSD__)
-       /* BUT OpenBSD does not reset the address lifetime
+#if defined(__OpenBSD__) && OpenBSD < 201705
+       /* BUT OpenBSD older than 6.2 does not reset the address lifetime
         * for subsequent calls...
         * Luckily dhcpcd will remove the lease when it expires so
         * just set an infinite lifetime, unless a temporary address. */



References:
problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Stuart Henderson
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Stuart Henderson
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Stuart Henderson
Archive administrator: postmaster@marples.name