NetBSD Problem Report #57958

From www@netbsd.org  Fri Feb 23 22:55:35 2024
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B25571A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 23 Feb 2024 22:55:35 +0000 (UTC)
Message-Id: <20240223225534.A50A51A923A@mollari.NetBSD.org>
Date: Fri, 23 Feb 2024 22:55:34 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: dhcpcd sometimes configures the same two DHCPv6 addresses on different interfaces
X-Send-Pr-Version: www-1.0

>Number:         57958
>Category:       bin
>Synopsis:       dhcpcd sometimes configures the same two DHCPv6 addresses on different interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 23 23:00:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        netbsd-10
>Organization:
The You Say Network, I Say Notwork Foundatoin
>Environment:
NetBSD nanocons.local 10.0_RC3 NetBSD 10.0_RC3 (GENERIC64) #15: Wed Jan 17 05:31:14 UTC 2024  root@manticore.local:/usr/obj/10/evbarm64/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
I have a LAN configured on a subnet, say 2001:db8::/64, with SLAAC and DHCPv6.  I have a NetBSD device with two interfaces, ure0 and urtwn0, configured with dhcpcd, using the only two changes from 10.0_RC3 dhcpcd.conf:

-option rapid_commit
+#option rapid_commit
...
+nooption dhcp6_reconfigure_accept

The DHCPv6 server hands out two different addresses, say 2001:db8::123 and 2001:db8::456, for the two different interfaces.  I'm not sure how it distinguishes which one should get which interface.

Somehow, dhcpcd sometimes configures _both_ interfaces with _both_ addresses:

# ifconfig -a
...
ure0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
        inet6 2001:db8::123/128 flags 0
        inet6 2001:db8::456/128 flags 0
...
urtwn0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
        inet6 2001:db8::456/128 flags 0
        inet6 2001:db8::123/128 flags 0
...
>How-To-Repeat:
not sure
>Fix:
Yes, please!

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.