Re: How to find scope_id for an interface?
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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