Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Corinna Vinschen
On Dec 2 21:03, Jason Curl wrote: > On 02/12/2010 18:59, Corinna Vinschen wrote: > >On Dec 2 14:23, Jason Curl wrote: > >>One of my use cases is to test a particular interface if it has an IP > >>address > >>or not (due to DHCP, AutoIP, etc.). Then on definition of an address, I can > >>trigger

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Matthias Andree
Am 02.12.2010 18:54, schrieb Jason Curl: > Linux getifaddrs(): > * eth0 -> AF_INET > * eth0 -> AF_INET6 > > Cygwin getifaddrs(): > * {xxx} -> AF_INET6 > * {xxx}:1 -> AF_INET > > This is another reason why I think it could be architecturally simpler to just > have multiple records and to drop the

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Jason Curl
On 02/12/2010 18:59, Corinna Vinschen wrote: On Dec 2 14:23, Jason Curl wrote: One of my use cases is to test a particular interface if it has an IP address or not (due to DHCP, AutoIP, etc.). Then on definition of an address, I can trigger a process. This assumes that the interface names remai

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Corinna Vinschen
On Dec 2 17:54, Jason Curl wrote: > Jason Curl arcor.de> writes: > > > Corinna Vinschen cygwin.com> writes: > > > So, for the above interface we get > > > > > > 371D57D9-0FF3-402C-AB69-E88FF9D85BC3:f36e.1 > > > > > > as the unique alias name for the given IPv4 address. > > > > > > > The s

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Corinna Vinschen
On Dec 2 14:23, Jason Curl wrote: > Corinna Vinschen cygwin.com> writes: > > I think there's a potential solution to this problem. It just depends on > > how important it is. > > > > snip > > > So here's the idea. If we remove the braces from the GUID name, we drop > > 2 chars, so we have 6

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Jason Curl
Jason Curl arcor.de> writes: > Corinna Vinschen cygwin.com> writes: > > So, for the above interface we get > > > > 371D57D9-0FF3-402C-AB69-E88FF9D85BC3:f36e.1 > > > > as the unique alias name for the given IPv4 address. > > > > The solution that I do prefer, is one similar to QNX. QNX beha

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Jason Curl
Corinna Vinschen cygwin.com> writes: > I think there's a potential solution to this problem. It just depends on > how important it is. > snip > So here's the idea. If we remove the braces from the GUID name, we drop > 2 chars, so we have 6 chars left. 6 chars are enough to convert the > IPv4

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Corinna Vinschen
On Dec 2 12:40, Corinna Vinschen wrote: > On Dec 1 22:30, Jason Curl wrote: > > Hello, > > > > I've seen an issue when using getifaddrs() using Cygwin 1.7.x > > (snapshot build from 2010-11-24, shortly after the ARP fixes from > > Corinna). Operating System is Windows 7 x64_86 Ultimate. > > > >

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Corinna Vinschen
On Dec 2 10:36, Jason Curl wrote: > Jason Curl arcor.de> writes: > > > Hello, > > > > I've seen an issue when using getifaddrs() using Cygwin 1.7.x (snapshot > > build from 2010-11-24, shortly after the ARP fixes from Corinna). > > Operating System is Windows 7 x64_86 Ultimate. > > > > When

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Corinna Vinschen
On Dec 1 22:30, Jason Curl wrote: > Hello, > > I've seen an issue when using getifaddrs() using Cygwin 1.7.x > (snapshot build from 2010-11-24, shortly after the ARP fixes from > Corinna). Operating System is Windows 7 x64_86 Ultimate. > > When I use getifaddrs() I get a list of interface names,

Re: Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-02 Thread Jason Curl
Jason Curl arcor.de> writes: > Hello, > > I've seen an issue when using getifaddrs() using Cygwin 1.7.x (snapshot > build from 2010-11-24, shortly after the ARP fixes from Corinna). > Operating System is Windows 7 x64_86 Ultimate. > > When I use getifaddrs() I get a list of interface names, s

Difference in behaviour between getifaddrs() and ioctl(SIOCGIFCONF)

2010-12-01 Thread Jason Curl
Hello, I've seen an issue when using getifaddrs() using Cygwin 1.7.x (snapshot build from 2010-11-24, shortly after the ARP fixes from Corinna). Operating System is Windows 7 x64_86 Ultimate. When I use getifaddrs() I get a list of interface names, some are appended with ":1". Getting the