NetBSD Problem Report #48241

From martin@netbsd.org  Tue Sep 24 19:55:12 2013
Return-Path: <martin@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8E22F720E6
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 24 Sep 2013 19:55:12 +0000 (UTC)
Message-Id: <20130924195512.182F814A2E6@mail.netbsd.org>
Date: Tue, 24 Sep 2013 19:55:12 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: ntpd is confused by detached v6 address
X-Send-Pr-Version: 3.95

>Number:         48241
>Category:       bin
>Synopsis:       ntpd is confused by detached v6 address
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 24 20:00:01 +0000 2013
>Closed-Date:    Thu Aug 18 14:49:20 +0000 2016
>Last-Modified:  Thu Aug 18 14:49:20 +0000 2016
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.23
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 6.99.23 NetBSD 6.99.23 (NIGHT-OWL) #202: Fri Sep 20 19:59:50 CEST 2013 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

My bge0 interface is currently not wired. It gets a detached IPv6 link local
address:

bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
[..]
        media: Ethernet autoselect (none)
        status: no carrier
        inet6 fe80::226:2dff:fe90:46d1%bge0 prefixlen 64 detached scopeid 0x1

ntpd tries to use this interface and logs (lots of!):

Sep 24 21:36:24 night-owl ntpd[529]: bind(29) AF_INET6 fe80::226:2dff:fe90:46d1%1#123 flags 0x11 failed: Can't assign requested address
Sep 24 21:36:24 night-owl ntpd[529]: unable to create socket on bge0 (47) for fe80::226:2dff:fe90:46d1#123
Sep 24 21:36:24 night-owl ntpd[529]: failed to init interface for address fe80::226:2dff:fe90:46d1


>How-To-Repeat:

Run ntpd in default config on a machine with ip6mode=autohost and disconnected
network cable.

>Fix:
n/a

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: roy@NetBSD.org
State-Changed-When: Thu, 18 Aug 2016 14:49:20 +0000
State-Changed-Why:
This was fixed in src/external/bsd/ntp/dist/ntpd/ntp_io.c r1.18


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.