Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-10-25 Thread Steven Chamberlain
found 740509 glibc/2.19-11 tags 740509 + patch thanks Hi, I'm sorry, I made a mistake testing this on kfreebsd-i386; I'd modified a header in the build tree and forgotten about it. As a result, the workaround was not effective on kfreebsd-i386 10.1. Some additional code is committed now to

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-10-21 Thread Steven Chamberlain
reassign 740509 glibc found 740509 glibc/2.19-11 affects 740509 + freebsd-net-tools tags 740509 + patch thanks Hi, On 21/10/14 03:00, Steven Chamberlain wrote: The attached patch uses rt_msghdr-ifm_msglen to guess the running kernel version and accordingly, find the right place for the struct

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-10-20 Thread Steven Chamberlain
Hi! The attached patch is my best guess at how to fix this bug. I'm still testing it myself, but I'm sharing it now in case anyone else is able to build glibc on kfreebsd-i386 and also help test. (It can take many hours to build glibc). getifaddrs() uses a NET_RT_IFLIST sysctl to get back a

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-09-25 Thread Steven Chamberlain
On 23:34, Steven Chamberlain wrote: A sysctl { CTL_NET, PF_ROUTE, 0, 0, NET_RT_IFLIST, 0 } from kfreebsd-i386 userland on kfreebsd-amd64 9.0 or 10.0 kernel, never seems to fail with ENOMEM! Regardless of given buffer size: Have tried on upstream 32-bit kernel with 32-bit userland, and it

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-09-21 Thread Steven Chamberlain
reassign 740509 libc0.1 found 740509 glibc/2.19-11 tags 740509 + jessie sid affects 740509 freebsd-net-tools user debian-...@lists.debian.org usertags 740509 + kfreebsd thanks On 13:10, Robert Millan wrote: $ sudo ifconfig -a : flags=8802BROADCAST,SIMPLEX,MULTICAST ifconfig:

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-09-21 Thread Steven Chamberlain
Actually that workaround referred to *if_msghdr* but recent changes have been to *ifa_msghdr*: https://alioth.debian.org/scm/viewvc.php/trunk/glibc-ports/kfreebsd/if_index.c?root=glibc-bsdr1=1716r2=2484 so the problem is not quite what I thought. I think I've been seeing two bugs at once. This

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-09-21 Thread Steven Chamberlain
On 13:10, Robert Millan wrote: $ sudo ifconfig -a : flags=8802BROADCAST,SIMPLEX,MULTICAST ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address : flags=0 ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address : flags=0 ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-09-21 Thread Steven Chamberlain
I think I've found a *different* bug while looking for this. A sysctl { CTL_NET, PF_ROUTE, 0, 0, NET_RT_IFLIST, 0 } from kfreebsd-i386 userland on kfreebsd-amd64 9.0 or 10.0 kernel, never seems to fail with ENOMEM! Regardless of given buffer size: Calling sysctl with buffer of size 1024

Bug#740509: ifconfig: ioctl(SIOCGIFINFO_IN6): No such device or address

2014-03-02 Thread Robert Millan
Package: freebsd-net-tools Version: 9.2+ds1-1+b1 Severity: critical Control: found -1 10.0-3 On this system, ifconfig is unable to bring up network when running on a 10.0 kernel (this happens with 10.0 debian kernels and with kfreebsd-downloader too). The problem appears to be somehow related to