From owner-freebsd-net@FreeBSD.ORG Tue Sep 12 06:42:10 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 58CD816A40F for ; Tue, 12 Sep 2006 06:42:10 +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 AC11B43D45 for ; Tue, 12 Sep 2006 06:42:08 +0000 (GMT) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id A017033C9C; Tue, 12 Sep 2006 08:42:00 +0200 (SAST) Date: Tue, 12 Sep 2006 08:42:00 +0200 From: John Hay To: freebsd-net@freebsd.org Message-ID: <20060912064200.GA61525@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: CFR: netinet6/nd6.c - route add -inet 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: Tue, 12 Sep 2006 06:42:10 -0000 Is there anybody that would care to look over this change please? Or is it ok to commit it? For my test setup I have two machines, the first 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