- To: ecos-discuss@xxxxxxxxxxxxxxxxxx
- Subject: Re: How to find scope_id for an interface?
- From: Grant Edwards <grant.b.edwards@xxxxxxxxx>
- Date: Thu, 19 Jan 2012 23:28:04 +0000 (UTC)
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- User-agent: slrn/pre0.9.9-102 (Linux)
On 2012-01-19, Grant Edwards <grant.b.edwards@xxxxxxxxx> 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
[Linux Embedded]
[U-Boot V2]
[Linux Kernel]
[Linux MIPS]
[Linux ARM]
[Linux for the Blind]
[Linux Resources]
[Photo]
[Yosemite]
[ISDN Cause Codes]
[ECOS Home]
[Site Home]