This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to find scope_id for an interface?
- From: Grant Edwards <grant dot b dot edwards at gmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 19 Jan 2012 23:28:04 +0000 (UTC)
- Subject: [ECOS] Re: How to find scope_id for an interface?
- References: <jfa3ot$sld$2@dough.gmane.org>
On 2012-01-19, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> I'm trying to figure out how to connect to an IPv6 link-local address,
> but I don't know what the value of sin_scope_id is supposed to be for
> the interface in question. I took a guess that it was a small integer
> (I only have two interfaces, including the local interface), but
> nothing I've tried works.
Doh! Never mind.
The sockaddr_in6 len field was wrong. I have a single Ethernet
interface, and I expected it to be scope_id 0 or 1, and it is indeed
1.
--
Grant Edwards grant.b.edwards Yow! A can of ASPARAGUS,
at 73 pigeons, some LIVE ammo,
gmail.com and a FROZEN DAQUIRI!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss