From owner-freebsd-net@FreeBSD.ORG Fri Apr 13 06:41:44 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 7B3DE106566B for ; Fri, 13 Apr 2012 06:41:44 +0000 (UTC) (envelope-from Bredehorn@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id CC1018FC1C for ; Fri, 13 Apr 2012 06:41:43 +0000 (UTC) Received: (qmail 17743 invoked by uid 0); 13 Apr 2012 06:41:42 -0000 Received: from 93.159.253.120 by rms-de009.v300.gmx.net with HTTP Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Date: Fri, 13 Apr 2012 08:41:41 +0200 From: "Rainer Bredehorn" Message-ID: <20120413064142.10640@gmx.net> MIME-Version: 1.0 To: freebsd-net@freebsd.org X-Authenticated: #168415 X-Flags: 0001 X-Mailer: GMX.net Web Mailer x-registered: 0 X-GMX-UID: 8a/1b0xleSEqVr7yaXQhtZZ+IGRvb4CS 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: Fri, 13 Apr 2012 06:41:44 -0000 Hi! > I have noticed that getifaddrs() does not have sin6_scope_id set to > the interface id for link local addresses on AF_INET6 types. Running > the following program gives different results on Linux ifconfig shows the scopeid according to the interface: inet6 fe80::208:9bff:fe13:784e%fxp1 prefixlen 64 scopeid 0x2 Are you talking about the scope value of an multicast address or the scopeid for link local addresses? Best regards, Rainer.