Re: XP + cygwin version 1.7: problem with /proc/net/if_inet6 format and if_indextoname

2008-06-13 Thread Corinna Vinschen
On Jun 10 12:41, Corinna Vinschen wrote: > On Jun 9 20:27, Deti Fliegl wrote: > > Maybe there should be some scope tests (by IN6_IS_ADDR_* macros) in > > winsup/cygwin/fhandler_procnet.cc to provide a consistent value. > > I see. Well, I put this on my TODO list. It shouldn't be too tricky > t

Re: XP + cygwin version 1.7: problem with /proc/net/if_inet6 format and if_indextoname

2008-06-10 Thread Corinna Vinschen
On Jun 9 20:27, Deti Fliegl wrote: > Corinna Vinschen wrote: >> The scope values are not always equal to the index, as you can see in your >> above output as well for the loopback. It's also 0 for the addresses >> with global scope. The values are taken from the sin6_scope_id field >> returned b

Re: XP + cygwin version 1.7: problem with /proc/net/if_inet6 format and if_indextoname

2008-06-09 Thread Deti Fliegl
Corinna Vinschen wrote: The scope values are not always equal to the index, as you can see in your above output as well for the loopback. It's also 0 for the addresses with global scope. The values are taken from the sin6_scope_id field returned by the Win32 function GetAdaptersAddresses. Comp

Re: XP + cygwin version 1.7: problem with /proc/net/if_inet6 format and if_indextoname

2008-06-09 Thread Corinna Vinschen
On Jun 8 22:03, Deti Fliegl wrote: > Hi, > > according to http://tldp.org/HOWTO/Linux+IPv6-HOWTO/proc-net.html the > format of /proc/net/if_inet6 contains scope and interface flags in position > 4 and 5. > > In Windows XP it looks like this (excerpt): > fe80020b5dfffea4902b 08 40 08

XP + cygwin version 1.7: problem with /proc/net/if_inet6 format and if_indextoname

2008-06-08 Thread Deti Fliegl
Hi, according to http://tldp.org/HOWTO/Linux+IPv6-HOWTO/proc-net.html the format of /proc/net/if_inet6 contains scope and interface flags in position 4 and 5. In Windows XP it looks like this (excerpt): fe80020b5dfffea4902b 08 40 08 01 {8C302852-0093-4ED1-8BBD-BAEA630C3A2A} fe800