-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Apr 8 2002 19:05 +0200, S�bastien Peterson wrote:

> I'm also having some trouble with the sin6_scope_id field...  I filled
> it up (succesfully!!) with the interface index, wich I determined with
>
> #include <net/if.h>
>       unsigned int  if_nametoindex(const char *ifname);
>
>
> But I don't understand why the kernel doesn't fill that field up,
> knowing the destination address and the routes tables...???  If someone
> could tell me more about that, it would help.
> Thanks,
>
> Seb.

I'd guess it's because you're dealing with raw sockets, and if you'd
ask me those should be just that, raw. Bare bones, to put it another
way. If you're not up to finding out which interface you wish to send
your data on, maybe you should just stay away from raw sockets
completely? ;-)

No, seriously, I guess one reason could be that the destination
address may be link or site local - and then you have to know which
interface to send the packet on.


Michael Kj�rling

- -- 
Michael Kj�rling  --  Programmer/Network administrator  ^..^
Internet: [EMAIL PROTECTED] -- FidoNet: 2:204/254.4   \/
PGP: 95f1 074d 336d f8f0 f297 6a5b 2aa3 7bfd 8a70 e33e

``And indeed people sometimes speak of man's "bestial" cruelty, but
this is very unfair and insulting to the beasts: a beast can never be
so cruel as a man, so ingeniously, so artistically cruel.''
(Ivan Karamazov, in Dostoyevsky's 'The Brothers Karamazov')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key is at http://michael.kjorling.com/contact/pgp.html

iD8DBQE8sfHjKqN7/Ypw4z4RApuLAKCd6ezQBXOtOZCabR/xZeA+mF7b+ACgq41K
WTjCAj9XkOGdsSrcVSI+3EM=
=dyca
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
The IPv6 Users Mailing List
Unsubscribe by sending "unsubscribe users" to [EMAIL PROTECTED]

Reply via email to