From nobody@FreeBSD.org  Sun Feb 12 02:44:54 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6592C16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Feb 2006 02:44:54 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 17CFE43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Feb 2006 02:44:54 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1C2irck029357
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Feb 2006 02:44:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k1C2ireE029356;
	Sun, 12 Feb 2006 02:44:53 GMT
	(envelope-from nobody)
Message-Id: <200602120244.k1C2ireE029356@www.freebsd.org>
Date: Sun, 12 Feb 2006 02:44:53 GMT
From: Paul <diffie@blazebox.homeip.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nd6_lookup: failed to add route for a neighbor
X-Send-Pr-Version: www-2.3
X-GNATS-Notify: arved@FreeBSD.org

>Number:         93220
>Category:       kern
>Synopsis:       [inet6] nd6_lookup: failed to add route for a neighbor
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-net
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 12 02:50:03 GMT 2006
>Closed-Date:    Mon Nov 20 12:21:31 GMT 2006
>Last-Modified:  Mon Nov 20 12:21:31 GMT 2006
>Originator:     Paul
>Release:        6.1-PRERELEASE
>Organization:
>Environment:
FreeBSD blazebox.homeip.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sat Feb 11 19:41:19 EST 2006     diffie@blazebox.homeip.net:/usr/obj/usr/src/sys/BLAZEBOX  i386
>Description:
Using ipv6 tunnel freemet6 from ports on any recent RELENG_6 system causes hundreds of nd6_lookup: failed to add route for a neighbor(2001:05c0:8fff:fffe::0d0), errno=17 messages a second.

The tunnel is not started or it's started too early in boot process:

Feb 11 21:18:04 blazebox kernel: Starting freenet6.
Feb 11 21:18:04 blazebox kernel: tspc - Tunnel Setup Protocol Client v2.1.1
Feb 11 21:18:04 blazebox kernel: Initializing (use -h for help)
Feb 11 21:18:04 blazebox kernel:
Feb 11 21:18:04 blazebox tspc:  tspMain: tspc - Tunnel Setup Protocol Client v2.1.1
Feb 11 21:18:04 blazebox tspc:  tspMain: Initializing (use -h for help)
Feb 11 21:18:04 blazebox kernel:
Feb 11 21:18:04 blazebox kernel: Error is 1: TSP_ERROR
Feb 11 21:18:04 blazebox kernel: TSP session done
Feb 11 21:18:04 blazebox tspc:  tspMain:  Error is 1: TSP_ERROR
Feb 11 21:18:04 blazebox kernel: Feb 11 21:18:04 blazebox tspc:  tspMain:  Error is 1: TSP_ERROR
Feb 11 21:18:04 blazebox tspc:  tspMain: TSP session done
Feb 11 21:18:04 blazebox kernel: Starting named.
Feb 11 21:18:04 blazebox named[460]: starting BIND 9.3.2 -c /etc/named.conf -u bind -t /var/named
Feb 11 21:18:04 blazebox named[460]: loading configuration from '/etc/named.conf'
Feb 11 21:18:04 blazebox named[460]: listening on IPv6 interfaces, port 53
Feb 11 21:18:04 blazebox named[460]: listening on IPv4 interface em0, 192.168.0.1#53
Feb 11 21:18:04 blazebox named[460]: listening on IPv4 interface lo0, 127.0.0.1#53
Feb 11 21:18:04 blazebox named[460]: command channel listening on 0.0.0.0#953
Feb 11 21:18:04 blazebox named[460]: errno2result.c:109: unexpected error:
Feb 11 21:18:04 blazebox kernel: Feb 11 21:18:04 blazebox named[460]: errno2result.c:109: unexpected error:
Feb 11 21:18:04 blazebox named[460]: unable to convert errno to isc_result: 45: Operation not supported
Feb 11 21:18:04 blazebox kernel: Feb 11 21:18:04 blazebox named[460]: unable to convert errno to isc_result: 45: Operation not supported
Feb 11 21:18:04 blazebox named[460]: could not open entropy source /dev/random: unexpected error
Feb 11 21:18:04 blazebox named[460]: using pre-chroot entropy source /dev/random

It might be also released to bind errors (although the proper dev entries do exist in chroot).
>How-To-Repeat:
Install freenet6 port and add it to /etc/rc.conf upon boot it will not start and when manually started, hundreds of above message about ndlookup will spam logs and dmesg.
>Fix:
None
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: arved 
State-Changed-When: Sun Feb 12 21:16:41 UTC 2006 
State-Changed-Why:  
Can you post the output of ifconfig? 

One common cause of this error is a wrong prefixlen. 

(Although i am seeing the same problem with right prefixlens) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93220 

From: Paul Blazejowski <paulb@blazebox.homeip.net>
To: bug-followup@FreeBSD.org, diffie@blazebox.homeip.net
Cc:  
Subject: Re: misc/93220: nd6_lookup: failed to add route for a neighbor
Date: Sun, 12 Feb 2006 19:13:25 -0500

 Sure,
 
 Here is the output of ifconfig:
 
 (diffie@blazebox)::(ttyp0)::(~)%
 
 --> ifconfig
 nve0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet6 fe80::220:edff:fe88:e0d7%nve0 prefixlen 64 scopeid 0x1
         ether 00:20:ed:88:e0:dd
         media: Ethernet autoselect (none)
         status: no carrier
 fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         options=8<VLAN_MTU>
         inet6 fe80::290:27ff:feba:72c2%fxp0 prefixlen 64 scopeid 0x2
         inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
         ether 00:90:27:ba:72:cc
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         options=b<RXCSUM,TXCSUM,VLAN_MTU>
         inet6 fe80::220:edff:fe87:e985%em0 prefixlen 64 scopeid 0x3
         inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
         inet6 2001:5c0:8352::1 prefixlen 64
         ether 00:20:ed:87:e9:88
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
         inet6 ::1 prefixlen 128
         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
         inet 127.0.0.1 netmask 0xff000000
 pflog0: flags=41<UP,RUNNING> mtu 33208
 pfsync0: flags=41<UP,RUNNING> mtu 2020
 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
         inet 68.23.23.11 --> 10.2.10.2 netmask 0xffffffff
         Opened by PID 254
 gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
         tunnel inet 68.23.23.11 --> 64.86.88.11
         inet6 2001:5c0:8fff:fffe::d6 --> 2001:5c0:8fff:fffe::d6
 prefixlen 128
         inet6 fe80::220:edff:fe88:e0d7%gif0 prefixlen 64 scopeid 0x8
 
 Thank you
 
 

From: Paul Blazejowski <paulb@blazebox.homeip.net>
To: Tilman Linneweh <arved@freebsd.org>
Cc: diffie@blazebox.homeip.net, freebsd-bugs@freebsd.org, support@freenet6.net
Subject: Re: misc/93220: nd6_lookup: failed to add route for a neighbor
Date: Tue, 07 Mar 2006 22:50:57 -0500

 --=-gFPhMcv40abS2SvwI8Jp
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 On Sun, 2006-02-12 at 21:17 +0000, Tilman Linneweh wrote:
 > Synopsis: nd6_lookup: failed to add route for a neighbor
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: arved
 > State-Changed-When: Sun Feb 12 21:16:41 UTC 2006
 > State-Changed-Why:=20
 > Can you post the output of ifconfig?
 >=20
 > One common cause of this error is a wrong prefixlen.
 >=20
 > (Although i am seeing the same problem with right prefixlens)
 >=20
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D93220
 >=20
 
 Just FYI again, still seeing the errors on todays cvsup build:
 
 FreeBSD blazebox.homeip.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0:
 Tue Mar  7 02:23:52 EST 2006
 diffie@blazebox.homeip.net:/usr/obj/usr/src/sys/BLAZEBOX  i386
 
 I am going to write to hexago's freenet6 support and see if there's
 anything that might need to be updated in their client for it to work
 with current release and or future 6.1 releases.
 
 Thanks again,
 
 Paul B.
 
 --=-gFPhMcv40abS2SvwI8Jp
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
 iD8DBQBEDlShwu5Nmh3PsiMRArCNAJ9TDqpn2h042bQqJ4rh1/U3JukF+wCgleKG
 jAxPD/inQBFKfGLF9EAoujc=
 =mBnO
 -----END PGP SIGNATURE-----
 
 --=-gFPhMcv40abS2SvwI8Jp--
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: arved 
Responsible-Changed-When: Thu Mar 9 16:05:33 UTC 2006 
Responsible-Changed-Why:  
Over to freebs-net. 

For the record, i have found a third person who sees this messages when 
updating from 6.0 to 6.1-prerelease.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=93220 

From: Paul Blazejowski <paulb@blazebox.homeip.net>
To: bug-followup@FreeBSD.org, diffie@blazebox.homeip.net
Cc: Tilman Linneweh <arved@freebsd.org>
Subject: Re: misc/93220: nd6_lookup: failed to add route for a neighbor
Date: Sat, 11 Mar 2006 15:35:35 -0500

 --=-DQXX5P6YH48nXH/Tsy0s
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 I think i found the cause of this issue, and confirmed it with freenet6
 support.
 
 The problem lies with the boot order for networking, freenet6 script is
 either started too early or too late and if it can't resolve DNS and
 IPv4 address it fails. This can be seen when giving -vvv to tspc client
 or appending it in the rc script:
 
 Mar  8 12:51:38 blazebox kernel: Starting freenet6.
 Mar  8 12:51:38 blazebox kernel: tspc - Tunnel Setup Protocol Client
 v2.1.1
 Mar  8 12:51:38 blazebox kernel: Initializing (use -h for help)
 Mar  8 12:51:38 blazebox kernel:
 Mar  8 12:51:38 blazebox tspc:  tspMain: tspc - Tunnel Setup Protocol
 Client v2.1.1
 Mar  8 12:51:38 blazebox tspc:  tspMain: Initializing (use -h for help)
 Mar  8 12:51:38 blazebox kernel: DNS server name ns2.afraid.org is not
 resolving.
 Mar  8 12:51:38 blazebox kernel: DNS server name ns4.afraid.org is not
 resolving.
 Mar  8 12:51:38 blazebox kernel: DNS server name ns.blazebox.homeip.net
 is not resolving.
 Mar  8 12:51:38 blazebox kernel:
 Mar  8 12:51:38 blazebox kernel: Error is 1: TSP_ERROR
 Mar  8 12:51:38 blazebox kernel: TSP session done
 Mar  8 12:51:38 blazebox tspc:  tspVerifyConfig: DNS server name
 ns2.afraid.org is not resolving.
 Mar  8 12:51:38 blazebox kernel: Mar  8 12:51:38 blazebox tspc:
 tspVerifyConfig: DNS server name ns2.afraid.org is not resolving.
 Mar  8 12:51:38 blazebox tspc:  tspVerifyConfig: DNS server name
 ns4.afraid.org is not resolving.
 Mar  8 12:51:38 blazebox kernel: Mar  8 12:51:38 blazebox tspc:
 tspVerifyConfig: DNS server name ns4.afraid.org is not resolving.
 Mar  8 12:51:38 blazebox tspc:  tspVerifyConfig: DNS server name
 ns.blazebox.homeip.net is not resolving.
 Mar  8 12:51:38 blazebox kernel: Mar  8 12:51:38 blazebox tspc:
 tspVerifyConfig: DNS server name ns.blazebox.homeip.net is not
 resolving.
 Mar  8 12:51:38 blazebox tspc:  tspMain:  Error is 1: TSP_ERROR
 Mar  8 12:51:38 blazebox kernel: Mar  8 12:51:38 blazebox tspc:
 tspMain:  Error is 1: TSP_ERROR
 Mar  8 12:51:38 blazebox tspc:  tspMain: TSP session done
 
 PPP should be started a bit earlier or the freenet6.sh should start
 later after the PPP session is done and up running.=20
 
 --=-DQXX5P6YH48nXH/Tsy0s
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2.2 (GNU/Linux)
 
 iD8DBQBEEzSXwu5Nmh3PsiMRAsyYAJ99+DRmO4LB4+0a6qSFlNUl0cJIngCglZmH
 IAsp8lo/uCwbjI+mXOP3Cm8=
 =wtl+
 -----END PGP SIGNATURE-----
 
 --=-DQXX5P6YH48nXH/Tsy0s--
 
State-Changed-From-To: feedback->analyzed 
State-Changed-By: arved 
State-Changed-When: Wed May 10 17:00:57 UTC 2006 
State-Changed-Why:  
Ed Schouten proposed a patch, 
http://lists.freebsd.org/pipermail/freebsd-net/2006-May/010540.html 


http://www.freebsd.org/cgi/query-pr.cgi?pr=93220 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: gnn 
State-Changed-When: Sat Jun 17 18:01:32 UTC 2006 
State-Changed-Why:  
This is fixed in HEAD and MFC'd to STABLE (6). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93220 
State-Changed-From-To: feedback->closed 
State-Changed-By: gnn 
State-Changed-When: Mon Nov 20 12:21:02 UTC 2006 
State-Changed-Why:  
This is in HEAD and STABLE and has been for several months. 
Closing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93220 
>Unformatted:
