Michael Kjorling wrote:

>-----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.
>

Sorry, but I ommited to mention my problems had nothing to do with raw 
sockets.
And like I said, knowing the destination address, can't the kernel 
determine the scope with the routing tables......?

Seb.

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

Reply via email to