From owner-freebsd-gnome@FreeBSD.ORG Sat Apr 5 18:38:25 2008 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58375106566B; Sat, 5 Apr 2008 18:38:25 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id EB1348FC0A; Sat, 5 Apr 2008 18:38:24 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:H/n3iYfQx6Rl5UvADlewwrPn4fJhvND6+HcXSO3AH8oCfEOTnX/vCFj9Owm0ffOP@kasuga.mahoroba.org [IPv6:2001:2f0:104:8010:20b:97ff:fe2e:b521]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.8/8.13.8) with ESMTP/inet6 id m35IcC1J065090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 6 Apr 2008 03:38:17 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 06 Apr 2008 03:38:12 +0900 Message-ID: From: Hajimu UMEMOTO To: wahjava.ml@gmail.com (Ashish Shukla =?UTF-8?B?4KSG4KS24KWA4KS3IOCktg==?= =?UTF-8?B?4KWB4KSV4KWN4KSy?=) In-Reply-To: <87sky2183w.fsf@chateau.d.lf> References: <87sky2183w.fsf@chateau.d.lf> User-Agent: xcite1.57> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.1 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.3-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Sun_Apr__6_03:38:11_2008-1" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sun, 06 Apr 2008 03:38:17 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on ameno.mahoroba.org Cc: gnome@freebsd.org, freebsd-ports@freebsd.org Subject: Re: net/avahi-app-0.6.22 not returning correct IPv6 link-local address. X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2008 18:38:25 -0000 --Multipart_Sun_Apr__6_03:38:11_2008-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, >>>>> On Fri, 04 Apr 2008 11:20:43 +0530 >>>>> Ashish Shukla =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81= =E0=A4=95=E0=A5=8D=E0=A4=B2 said: wahjava> I noticed that avahi-resolve is returning incorrect IPv6 link-local wahjava> address for a local interface. wahjava> I tried looking up for the issue myself, but I'm not familiar with= the wahjava> interface, avahi is using to lookup interface's address. wahjava> ---->8---->8---- wahjava> [abbe@monte-cristo ~/ports/avahi-app]$ ifconfig rl0 wahjava> rl0: flags=3D8843 metric 0= mtu 1500 wahjava> options=3D8 wahjava> ether 00:1b:38:ea:5c:76 wahjava> inet6 fe80::21b:38ff:feea:5c76%rl0 prefixlen 64 scopeid 0x= 1=20 wahjava> inet 172.16.0.7 netmask 0xffffffe0 broadcast 172.16.0.31 wahjava> inet6 fdxx:xxxx:xxxx::yyyy prefixlen 48=20 wahjava> media: Ethernet autoselect (100baseTX ) wahjava> status: active wahjava> [abbe@monte-cristo ~/ports/avahi-app]$ avahi-resolve -6 -n monte-c= risto.local wahjava> monte-cristo.local fe80:1::21b:38ff:feea:5c76 wahjava> [abbe@monte-cristo ~/ports/avahi-app]$ uname -a wahjava> FreeBSD monte-cristo.fr 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Ma= r 30 wahjava> 12:05:36 IST 2008 root@monte-cristo.fr:/usr/obj/usr/src/sys/ULE wahjava> amd64=20 wahjava> ----8<----8<---- wahjava> Can anyone else confirm this ? Or problem with my configuration, h= mm...? It seems a KAME specific embedded scope-id is exposed. Pleased try the attached patch. Sincerely, --Multipart_Sun_Apr__6_03:38:11_2008-1 Content-Type: text/x-patch; charset=US-ASCII Content-Disposition: attachment; filename="patch-avahi-core_iface-pfroute.c" Content-Transfer-Encoding: 7bit Index: avahi-core/iface-pfroute.c diff -u -p avahi-core/iface-pfroute.c.orig avahi-core/iface-pfroute.c --- avahi-core/iface-pfroute.c.orig 2007-09-03 21:32:41.000000000 +0900 +++ avahi-core/iface-pfroute.c 2008-04-06 03:06:24.000000000 +0900 @@ -172,6 +172,12 @@ static void rtm_addr(struct rt_msghdr *r break; case RTA_IFA: memcpy(raddr.data.data, &((struct sockaddr_in6 *)sa)->sin6_addr, sizeof(struct in6_addr)); +#ifdef __KAME__ + if (IN6_IS_ADDR_LINKLOCAL((struct in6_addr *)raddr.data.data)) { + ((struct in6_addr *)raddr.data.data)->s6_addr[2] = 0; + ((struct in6_addr *)raddr.data.data)->s6_addr[3] = 0; + } +#endif raddr_valid = 1; default: break; --Multipart_Sun_Apr__6_03:38:11_2008-1 Content-Type: text/plain; charset=US-ASCII -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ --Multipart_Sun_Apr__6_03:38:11_2008-1--