From owner-freebsd-net@FreeBSD.ORG Mon Apr 16 19:26:50 2012 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 844AA106567D; Mon, 16 Apr 2012 19:26:50 +0000 (UTC) (envelope-from jinmei@isc.org) Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by mx1.freebsd.org (Postfix) with ESMTP id 62FB68FC18; Mon, 16 Apr 2012 19:26:50 +0000 (UTC) Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mail.isc.org", Issuer "RapidSSL CA" (not verified)) by mx.pao1.isc.org (Postfix) with ESMTPS id 826A0C9463; Mon, 16 Apr 2012 19:26:42 +0000 (UTC) (envelope-from jinmei@isc.org) Received: from jmb.jinmei.org (unknown [IPv6:2001:4f8:3:64:a5cb:705b:2abc:7132]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bikeshed.isc.org (Postfix) with ESMTPSA id 45BDB216C33; Mon, 16 Apr 2012 19:26:42 +0000 (UTC) (envelope-from jinmei@isc.org) Date: Mon, 16 Apr 2012 12:26:41 -0700 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: "Bjoern A. Zeeb" In-Reply-To: <7153D609-0E71-435A-B076-27BD6C3AEA04@lists.zabbadoz.net> References: <20120413064142.10640@gmx.net> <7153D609-0E71-435A-B076-27BD6C3AEA04@lists.zabbadoz.net> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.1 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mx.pao1.isc.org Cc: freebsd-net@FreeBSD.org, Andrew Thompson , Hajimu UMEMOTO , Rainer Bredehorn Subject: Re: getifaddrs & ipv6 scope 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: Mon, 16 Apr 2012 19:26:50 -0000 At Sat, 14 Apr 2012 16:41:52 +0000, "Bjoern A. Zeeb" wrote: > > The issue you mentioned comes from an implementation decision of the > > KAME IPv6 stack. > > The attached patch should address it. However, it may break the > > applications which expect that getifaddrs() returns a link-local > > address with KAME's embeded scopeid representation. I'm not sure > > there are such applications, for now. > > There should be none. If we have some we should fix them. I wonder if this should actually be done in the kernel to limit the scope of the embedded scopeid to our kernel for now? Do we have other interfaces (ignoring kvm) that export the embedded scopeid? I suspect most of routing related implementations (most notably, route6d and quagga) still rely on the embedded scope (zone) ID for the data exchanged over a routing socket. --- JINMEI, Tatuya Internet Systems Consortium, Inc.