From owner-freebsd-net@FreeBSD.ORG Tue Jan 19 15:02:08 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 B7F261065696 for ; Tue, 19 Jan 2010 15:02:08 +0000 (UTC) (envelope-from fernando.gont.netbook.win@gmail.com) Received: from mail-yx0-f103.google.com (mail-yx0-f103.google.com [209.85.210.103]) by mx1.freebsd.org (Postfix) with ESMTP id 5FBFC8FC21 for ; Tue, 19 Jan 2010 15:02:07 +0000 (UTC) Received: by yxe1 with SMTP id 1so113321yxe.3 for ; Tue, 19 Jan 2010 07:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=W6wgiyeb/Oi87GM1uXRWUlUwcLKoRc4+jLQn+kBXylo=; b=bP9g1KM2wDm/9LRhyQzQBy1ucEnFj1KAorA02iF7kfj+/YvKdwj8DtazkKcGUgqGCc 76x9W6zsJT+J3aGvMkuLLLLx2LNI3w1KtmIWjompBxf4WjEx9JW9kC0hSMKKwhuSuwpp HRwsxZn5z9tDaqyC3mddEF9WAIz4Jz3cA0Bh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=FE6j6F4+60pHpCJajEAPvG13VK3jJlIsNd+DhTNpiDdOhkbKBM2lGqVqEJpr8t1NAS 3syOO/2ag2dB5pZokBNFAzBoxffX4SA/3FfXCuF2yTR/LqT17LsogI0+Azu39wqS08wf FeKYTNdb55ftEksfSK5Ne7U0InrSuZlynRZyw= Received: by 10.150.176.15 with SMTP id y15mr7658095ybe.242.1263913327278; Tue, 19 Jan 2010 07:02:07 -0800 (PST) Received: from ?192.168.0.151? (129-130-17-190.fibertel.com.ar [190.17.130.129]) by mx.google.com with ESMTPS id 4sm2596907ywi.9.2010.01.19.07.02.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 19 Jan 2010 07:02:06 -0800 (PST) Sender: Fernando Gont Message-ID: <4B55C968.5050907@gont.com.ar> Date: Tue, 19 Jan 2010 12:02:00 -0300 From: Fernando Gont User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: David Horn References: <4B559EBC.9060502@gont.com.ar> <25ff90d61001190625m224c0aaco83ff65a1a28f28d0@mail.gmail.com> In-Reply-To: <25ff90d61001190625m224c0aaco83ff65a1a28f28d0@mail.gmail.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=D076FFF1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 15:02:08 -0000 Hello, David, Thanks so much for your response. Comments in-line.... >> 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. Agreed. > 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) Nothing interesting. :-( But still the same problem... > Out of curiousity, what device is using a non EUI-64 for link-local, > or is this a manually configured link-local situation ? I'm just playing with a RouterAdvertisement forging tool I just built. I've checked the on-the-wire packets, and they seem to be correct. :-( Thanks, -- Fernando Gont e-mail: fernando@gont.com.ar || fgont@acm.org PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1