NetBSD Problem Report #50549

From www@NetBSD.org  Mon Dec 14 07:52:46 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id ECFC67ACAA
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Dec 2015 07:52:46 +0000 (UTC)
Message-Id: <20151214075245.7D7777ACBB@mollari.NetBSD.org>
Date: Mon, 14 Dec 2015 07:52:45 +0000 (UTC)
From: ozaki-r@netbsd.org
Reply-To: ozaki-r@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: ndp(8) lists entries of link-local addresses but fails to get a specific entry
X-Send-Pr-Version: www-1.0

>Number:         50549
>Category:       bin
>Synopsis:       ndp(8) lists entries of link-local addresses but fails to get a specific entry
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 14 07:55:00 +0000 2015
>Closed-Date:    Mon Feb 01 08:13:49 +0000 2016
>Last-Modified:  Mon Feb 01 08:13:49 +0000 2016
>Originator:     Ryota Ozaki
>Release:        NetBSD-7.0_RELEASE and above
>Organization:
>Environment:
NetBSD netbsd7 7.0.0_PATCH NetBSD 7.0.0_PATCH (GENERIC.201512132100Z) amd64

>Description:
On a NetBSD 6.x machine, ndp -n <link-local-address> works:

netbsd6# ndp -n -a
Neighbor                             Linklayer Address  Netif Expire    S Flags
fe80::5054:ff:fedc:25e3%vioif0       52:54:00:dc:25:e3 vioif0 permanent R 
fe80::5054:ff:fefe:4a97%vioif1       52:54:00:fe:4a:97 vioif1 permanent R 
fe80::1%lo0                          (incomplete)         lo0 permanent R 
netbsd6# ndp -n fe80::5054:ff:fedc:25e3%vioif0
Neighbor                             Linklayer Address  Netif Expire    S Flags
fe80::5054:ff:fedc:25e3%vioif0       52:54:00:dc:25:e3 vioif0 permanent R 

However, since 7.0_RELEASE, it doesn't work:

netbsd7# ndp -n -a
Neighbor                             Linklayer Address  Netif Expire    S Flags
fe80::5054:ff:fef3:d81c%vioif0       52:54:00:f3:d8:1c vioif0 permanent R 
fe80::1%lo0                          (incomplete)         lo0 permanent R 
netbsd7# ndp -n fe80::5054:ff:fef3:d81c%vioif0
Neighbor                             Linklayer Address  Netif Expire    S Flags
ndp: fe80::5054:ff:fef3:d81c%vioif0 (fe80::5054:ff:fef3:d81c) -- no entry

(I tested only on 7.0.0_PATCH (GENERIC.201512132100Z) but my colleague confirmed
that the issue happens on 7.0_RELEASE too.)
>How-To-Repeat:
See above.
>Fix:
N/A

>Release-Note:

>Audit-Trail:
From: Ryota Ozaki <ozaki-r@netbsd.org>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>, Christos Zoulas <christos@astron.com>
Cc: 
Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but
 fails to get a specific entry
Date: Mon, 14 Dec 2015 19:11:59 +0900

 A possible fix is here: http://www.netbsd.org/~ozaki-r/ndp-linklocal.diff
 It seems that migration to inet6_putscopeid regressed KAME-specific
 scope id handling. Christos, could you review the patch?

 Thanks,
   ozaki-r

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, ozaki-r@netbsd.org
Cc: 
Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but fails to get a specific entry
Date: Mon, 14 Dec 2015 13:24:31 -0500

 On Dec 14, 10:15am, ozaki-r@netbsd.org (Ryota Ozaki) wrote:
 -- Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but 

 | The following reply was made to PR kern/50549; it has been noted by GNATS.
 | 
 | From: Ryota Ozaki <ozaki-r@netbsd.org>
 | To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>, Christos Zoulas <christos@astron.com>
 | Cc: 
 | Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but
 |  fails to get a specific entry
 | Date: Mon, 14 Dec 2015 19:11:59 +0900
 | 
 |  A possible fix is here: http://www.netbsd.org/~ozaki-r/ndp-linklocal.diff
 |  It seems that migration to inet6_putscopeid regressed KAME-specific

 Thanks, I committed a change based on your fix!

 christos

From: "Ryota Ozaki" <ozaki-r@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50549 CVS commit: src/tests/net/net
Date: Tue, 15 Dec 2015 01:33:08 +0000

 Module Name:	src
 Committed By:	ozaki-r
 Date:		Tue Dec 15 01:33:08 UTC 2015

 Modified Files:
 	src/tests/net/net: t_ipv6address.sh

 Log Message:
 Add more tests for IPv6 link-local addresses

 The tests include a test for PR 50549.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/tests/net/net/t_ipv6address.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Ryota Ozaki <ozaki-r@netbsd.org>
To: Christos Zoulas <christos@zoulas.com>
Cc: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>, kern-bug-people@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but
 fails to get a specific entry
Date: Tue, 15 Dec 2015 10:38:27 +0900

 On Tue, Dec 15, 2015 at 3:24 AM, Christos Zoulas <christos@zoulas.com> wrote:
 > On Dec 14, 10:15am, ozaki-r@netbsd.org (Ryota Ozaki) wrote:
 > -- Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but
 >
 > | The following reply was made to PR kern/50549; it has been noted by GNATS.
 > |
 > | From: Ryota Ozaki <ozaki-r@netbsd.org>
 > | To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>, Christos Zoulas <christos@astron.com>
 > | Cc:
 > | Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but
 > |  fails to get a specific entry
 > | Date: Mon, 14 Dec 2015 19:11:59 +0900
 > |
 > |  A possible fix is here: http://www.netbsd.org/~ozaki-r/ndp-linklocal.diff
 > |  It seems that migration to inet6_putscopeid regressed KAME-specific
 >
 > Thanks, I committed a change based on your fix!

 I confirmed your change works for me :)

   ozaki-r

Responsible-Changed-From-To: kern-bug-people->bin-bug-people
Responsible-Changed-By: ozaki-r@NetBSD.org
Responsible-Changed-When: Tue, 15 Dec 2015 01:48:19 +0000
Responsible-Changed-Why:
It's a bug of ndp(8).


State-Changed-From-To: open->pending-pullups
State-Changed-By: ozaki-r@NetBSD.org
State-Changed-When: Tue, 15 Dec 2015 01:49:07 +0000
State-Changed-Why:
pullup-7 #1063


From: christos@zoulas.com (Christos Zoulas)
To: Ryota Ozaki <ozaki-r@netbsd.org>
Cc: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>, 
	kern-bug-people@netbsd.org, gnats-admin@netbsd.org, 
	netbsd-bugs@netbsd.org
Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but fails to get a specific entry
Date: Mon, 14 Dec 2015 21:31:23 -0500

 On Dec 15, 10:38am, ozaki-r@netbsd.org (Ryota Ozaki) wrote:
 -- Subject: Re: kern/50549: ndp(8) lists entries of link-local addresses but 

 | > Thanks, I committed a change based on your fix!
 | 
 | I confirmed your change works for me :)

 Thanks!

 christos

State-Changed-From-To: pending-pullups->closed
State-Changed-By: ozaki-r@NetBSD.org
State-Changed-When: Mon, 01 Feb 2016 08:13:49 +0000
State-Changed-Why:
pulled up


>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.