NetBSD Problem Report #60852

From www@netbsd.org  Mon Oct  5 20:21:27 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7BC7A1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  5 Oct 2026 20:21:27 +0000 (UTC)
Message-Id: <20261005202126.1961F1A923C@mollari.NetBSD.org>
Date: Mon,  5 Oct 2026 20:21:26 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: dhcpcd creates IPv6 temporary addresses without pltime/vltime
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60852
>Category:       bin
>Synopsis:       dhcpcd creates IPv6 temporary addresses without pltime/vltime
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    roy
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 05 20:25:00 +0000 2026
>Last-Modified:  Mon Oct 05 20:28:46 +0000 2026
>Originator:     Taylor R Campbell
>Release:        11
>Organization:
The NetBSD<AUTOCONF,TEMPORARY> Forever, Inc.
>Environment:
nanocons$ head -1 /etc/release
NetBSD 11.0_RC5/evbarm
nanocons$ uname -a
NetBSD nanocons.local 11.0_RC5 NetBSD 11.0_RC5 (GENERIC64) #0: Mon Jun 29 03:37:04 UTC 2026  root@manticore.local:/usr/obj/11/evbarm64/sys/arch/evbarm/compile/GENERIC64 evbarm
nanocons$ dhcpcd --version
dhcpcd 10.2.3
Copyright (c) 2006-2025 Roy Marples
Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH PRIVSEP

>Description:

	When dhcpcd is configured with

slaac private temporary

	in dhcpcd.conf, it sometimes assigns pltime and vltime to
	temporary addresses, but it sometimes just doesn't:

$ ifconfig -L ure0 | grep TEMPORARY
        inet6 ${GUA_PREFIX_A}:bf61:cc13:4667:40f1/64 flags 0xc0<AUTOCONF,TEMPORARY>
        inet6 ${GUA_PREFIX_B}:49b7:781c:fca9:62eb/64 flags 0xc0<AUTOCONF,TEMPORARY> pltime 4353 vltime 4400
        inet6 ${ULA_PREFIX}:1611:a6b3:c9c5:531f/64 flags 0xc0<AUTOCONF,TEMPORARY>
        inet6 ${GLA_PREFIX_A}:5e38:9c1f:e37d:d4a6/64 flags 0xc0<AUTOCONF,TEMPORARY>
        inet6 ${ULA_PREFIX}:2c9d:1c40:96b:51dd/64 flags 0xc0<AUTOCONF,TEMPORARY>

	This network is configured with a combination of DHCPv6 and SLAAC:

# dhcpcd -U ure0
...
reason=ROUTERADVERT
interface=ure0
protocol=ra
nd1_from=fe80::${ROUTER_LL}
nd1_acquired=418496
nd1_now=418532
nd1_hoplimit=64
nd1_flags=MO
nd1_lifetime=1800
nd1_source_address=${ROUTER_MAC}
nd1_mtu=1500
nd1_prefix_information1_length=64
nd1_prefix_information1_flags=LA
nd1_prefix_information1_vltime=4294967295
nd1_prefix_information1_pltime=4294967295
nd1_prefix_information1_prefix=${GUA_PREFIX_A}:
nd1_prefix_information2_length=64
nd1_prefix_information2_flags=LA
nd1_prefix_information2_vltime=4264
nd1_prefix_information2_pltime=4264
nd1_prefix_information2_prefix=${GUA_PREFIX_B}:
nd1_prefix_information3_length=64
nd1_prefix_information3_flags=LA
nd1_prefix_information3_vltime=4294967295
nd1_prefix_information3_pltime=4294967295
nd1_prefix_information3_prefix=${ULA_PREFIX}
nd1_rdnss1_lifetime=1800
nd1_rdnss1_servers=fd00::1
nd1_addr1=${GUA_PREFIX_A}:bf61:cc13:4667:40f1/64
nd1_addr2=${GUA_PREFIX_B}:49b7:781c:fca9:62eb/64
nd1_addr3=${ULA_PREFIX}:1611:a6b3:c9c5:531f/64
skip_hooks=resolv.conf

reason=RENEW6
interface=ure0
protocol=dhcp6
dhcp6_server_id=${DHCP6_SERVER_ID}
dhcp6_client_id=${DHCP6_CLIENT_ID}
dhcp6_sol_max_rt=60
dhcp6_name_servers=${ULA_PREFIX}::1
dhcp6_ia_na1_iaid=${IAID}
dhcp6_ia_na1_t1=2892
dhcp6_ia_na1_t2=4628
dhcp6_ia_na1_ia_addr1=${GUA_PREFIX_A}::3c0
dhcp6_ia_na1_ia_addr1_pltime=4294967295
dhcp6_ia_na1_ia_addr1_vltime=4294967295
dhcp6_ia_na1_ia_addr2=${GUA_PREFIX_B}::3c0
dhcp6_ia_na1_ia_addr2_pltime=5785
dhcp6_ia_na1_ia_addr2_vltime=5785
dhcp6_ia_na1_ia_addr3=${ULA_PREFIX}::3c0
dhcp6_ia_na1_ia_addr3_pltime=4294967295
dhcp6_ia_na1_ia_addr3_vltime=4294967295
skip_hooks=resolv.conf

>How-To-Repeat:

	Add

slaac private temp

	to /etc/dhcpcd.conf and (probably) configure your interface on
	a network that serves one prefix with pltime/vltime of
	(uint32_t)-1 and another prefix with some other pltime/vltime.

>Fix:

	Yes, please!  Also please make the same syntax Just Work if
	dhcpcd transitions from RFC 4941 (now obsolete) to its
	successor RFC 8981.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->roy
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Mon, 05 Oct 2026 20:28:46 +0000
Responsible-Changed-Why:
over to dhcpcd maintainre


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.