From owner-freebsd-net@FreeBSD.ORG Fri Sep 8 16:15:22 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E60F16A4DD for ; Fri, 8 Sep 2006 16:15:22 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ED1843D49 for ; Fri, 8 Sep 2006 16:15:19 +0000 (GMT) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 853CD33CAF; Fri, 8 Sep 2006 18:15:14 +0200 (SAST) Date: Fri, 8 Sep 2006 18:15:14 +0200 From: John Hay To: freebsd-net@freebsd.org Message-ID: <20060908161514.GA42016@zibbi.meraka.csir.co.za> References: <20060907100944.GA68587@zibbi.meraka.csir.co.za> <20060907141019.91998.qmail@web26604.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060907141019.91998.qmail@web26604.mail.ukl.yahoo.com> User-Agent: Mutt/1.4.2.1i Subject: Re: ipv6 host routes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 16:15:22 -0000 Ok, I have made some progress. Again I have two machines, called rtrg, which I'm working on and rtr2, the one I want to "route" to. So my /etc/hosts have this in: 2001:4200:7000:15:202:6fff:fe22:9547 rtrg 2001:4200:7000:15:202:6fff:fe41:1927 rtr2 If I add a route (on rtrg) like this, I do not get an error while adding it: route add -inet6 rtr2 rtrg -interface -llinfo But the first time I use it, the kernel spits out this message: nd6_storelladdr: sdl_alen == 0 So I had a look and tweaked sys/netinet6/nd6.c:nd6_rtrequest() a little and now it is working. Now I won't pretend that I have my head around all the IPv6 routing/ndp intricasies, so I would really like some more eyes over this. With this and my FreeBSD/IPv6 port of olsrd I can run multiple wireless interfaces with the same IPv6 subnet and olsrd can make it all work. The diff is against RELENG_6 Index: nd6.c =================================================================== RCS file: /home/ncvs/src/sys/netinet6/nd6.c,v retrieving revision 1.48.2.13 diff -u -r1.48.2.13 nd6.c --- nd6.c 17 Jun 2006 17:58:33 -0000 1.48.2.13 +++ nd6.c 8 Sep 2006 09:16:58 -0000 @@ -1392,6 +1392,8 @@ ip6_sprintf(&llsol), error)); } } + } else if (req == RTM_ADD && SDL(gate)->sdl_alen == 0) { + ln->ln_state = ND6_LLINFO_INCOMPLETE; } break; John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org