Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2012 20:01:39 +1200
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Rainer Bredehorn <Bredehorn@gmx.de>
Cc:        freebsd-net@freebsd.org
Subject:   Re: getifaddrs & ipv6 scope
Message-ID:  <CAFAOGNRLcadCMCZ8WjaFi3XYhzV55Tp0v=%2BoMGyLOv666bFHkA@mail.gmail.com>
In-Reply-To: <20120413064142.10640@gmx.net>
References:  <20120413064142.10640@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 April 2012 18:41, Rainer Bredehorn <Bredehorn@gmx.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFAOGNRLcadCMCZ8WjaFi3XYhzV55Tp0v=%2BoMGyLOv666bFHkA>