From owner-freebsd-net@FreeBSD.ORG Tue Jan 19 14:25:06 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B82E106568F for ; Tue, 19 Jan 2010 14:25:06 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id C9ADD8FC0A for ; Tue, 19 Jan 2010 14:25:05 +0000 (UTC) Received: by fxm10 with SMTP id 10so756851fxm.14 for ; Tue, 19 Jan 2010 06:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=xMMIA0tCpjf3A7JpEgqM7Y4TlhJyMQ3zC5/nwMGg8do=; b=PE1dW70GyM4Xl9S0qL41CSMIaNkfGOcFWjdEAO6lGXCb3icrSc7tEUIibeb9MhOp33 a/bp29O/O0qCJvFjJFBHnFI9QhlfUgu2767MqwaiPu1mBlFecccYMzrK2Q+gxdb93vyC HjQ2L1G1BGryY1KD+NQe3/FakKgfFK2zfAgJY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Qs7PGeo3Kr+U2AvneiaNgsdKEYtuXtsf9rqibgwLnzpW4ZFTpW5KYR2eav7lsYhoSN 0qFUVTlcykzLlXHdHy9PPAEZdVeO2F8q7kg9yLbK/sw6BRfyvatBHVmDK8UCQYqanE0r WZEkQZYQb3Yu6fw8J46Z7CLSMmdqG7587FZJs= MIME-Version: 1.0 Received: by 10.239.185.76 with SMTP id b12mr807603hbh.53.1263911104527; Tue, 19 Jan 2010 06:25:04 -0800 (PST) In-Reply-To: <4B559EBC.9060502@gont.com.ar> References: <4B559EBC.9060502@gont.com.ar> Date: Tue, 19 Jan 2010 09:25:04 -0500 Message-ID: <25ff90d61001190625m224c0aaco83ff65a1a28f28d0@mail.gmail.com> From: David Horn To: Fernando Gont Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: Processing IPv6 Router Advertisements 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, 19 Jan 2010 14:25:06 -0000 On Tue, Jan 19, 2010 at 6:59 AM, Fernando Gont wrote: > Hello, folks, > > I'm running FreeBSD 6.2-Release in one of my boxes, and there seems to > be a bug in the processing of Router Advertisement messages. > > RA messages seem to be required to have a Source Address in the > fe80::/32 prefix, rather than in the fe80::/10 prefix. That is, the > first 32 bits of the IPv6 Source address must be fe80:0000, or else the > message is dropped (at least, no changes are made to the destination > cache or the neighbor cache). > > Can anybody confirm this one, or correct me if I am wrong? A cursory look at the netinet6/nd6_rtr.c code looks like it is using IN6_IS_ADDR_LINKLOCAL from netinet6/in6.h which should be smart enough to just look at fe80::/10. Try setting net.inet6.icmp6.nd6_debug=1 in /etc/sysctl.conf and reboot to see if there is anything interesting coming out of debug logging. (will show in dmesg and /var/log/messages) Out of curiousity, what device is using a non EUI-64 for link-local, or is this a manually configured link-local situation ? Good Luck. ---Dave Horn