From owner-freebsd-net@FreeBSD.ORG Fri Apr 13 08:01:40 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2066A106566C for ; Fri, 13 Apr 2012 08:01:40 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id E72598FC16 for ; Fri, 13 Apr 2012 08:01:39 +0000 (UTC) Received: by dadz14 with SMTP id z14so11777887dad.17 for ; Fri, 13 Apr 2012 01:01:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=3OAMiAOKN/pFIxCvzrH2oKS+9STqLUuuwxsRo4nyygM=; b=P6yheyIwwRtq3qDi8SnTuLlkj+LhBJEmD52FQJtFNtu5VRbycF2Y317m/n1iuB6Rr2 mx1+cuY/xbZQjQptOTYqFaVKyC29ty7GoQmMrVsoA9lmP1fz9gzxhCNsSn3/83IoItnP N3rqVV7twcss5mCgHtzCt/QxEitG7aPBd5rqJSpZYPh9MIzHxS3Q/+fWDGvmIssRH3iX a2qM3m2FM5WvathUmocoI8RtQaToyZidX+Qli723+7jom1nAKJuKYSR4pRGt4CfYCctN M7jItMiUgR6jtGxrNXrmn9ul7tK3npelAwymK6Fs9wKnzSlu3B3G+A5+wEl14XZgEpZe Re0Q== MIME-Version: 1.0 Received: by 10.68.201.73 with SMTP id jy9mr2824429pbc.35.1334304099239; Fri, 13 Apr 2012 01:01:39 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.68.33.230 with HTTP; Fri, 13 Apr 2012 01:01:39 -0700 (PDT) In-Reply-To: <20120413064142.10640@gmx.net> References: <20120413064142.10640@gmx.net> Date: Fri, 13 Apr 2012 20:01:39 +1200 X-Google-Sender-Auth: 4s2RnLsCbeQJesYmcLHmdGHzpH0 Message-ID: From: Andrew Thompson To: Rainer Bredehorn Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmlScgRX2oqx7EMpV/Eafj7n32QIvLvRKXpGWGNZdfuWzONNM/Eenkry8HlRes9tX3oZilm Cc: freebsd-net@freebsd.org 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 08:01:40 -0000 On 13 April 2012 18:41, Rainer Bredehorn wrote: > 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? I am talking about the scopeid for link local addresses which (as far as I understand) is the interface index. Andrew