This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to find scope_id for an interface?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]