Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ifconfig from 5.0_RC2 fails to work on -current



In article <1236980234.810713.19851.nullmailer%galant.ukfsn.org@localhost>,
Iain Hibbert  <plunky%rya-online.net@localhost> wrote:
>On Fri, 13 Mar 2009, David Young wrote:
>
>> On Fri, Mar 13, 2009 at 08:56:33PM +0000, Iain Hibbert wrote:
>> > Hi,
>> >    I tried booting a -current kernel with a 5.0RC2 userland and ifconfig
>> > fails to get interface information:
>> >
>> >   {1} ifconfig -a
>> >   ifconfig: getifaddrs: Invalid argument
>> >   {2} ifconfig wpi0
>> >   ifconfig: getifaddrs: Invalid argument
>> >   {3} ifconfig wm0
>> >   ifconfig: getifaddrs: Invalid argument
>> >   {4}: ifconfig sdfs3
>> >   ifconfig: SIOCGIFFLAGS sdfs3: Device not configured
>> >
>> > using a static version from the NetBSD-current destdir worked fine. Is the
>> > 5.0RC2 version expected to work/not work?
>
>[a 4.0 version failed to work also]
>
>> I expect for it to work.  Is the -current kernel compiled with
>> COMPAT_50, if there is any such thing?
>
>its a GENERIC kernel and the COMPAT_50 is marked as being in a module of
>which all were built at the same time as part of a release and I guess
>have been loaded, since most other programs seem to be working..
>
>>  What ioctl returns Invalid argument?  Let's see what ktrace has to say.
>
> 18131      0 ifconfig CALL  mmap(0,0x100000,3,0x14001002,0xffffffff,0,0,0)
> 18131      0 ifconfig RET   mmap -1148190720/0xbb900000
> 18131      0 ifconfig CALL  __sysctl(0xbfbfd530,6,0,0xbfbfd548,0,0)
> 18131      0 ifconfig RET   __sysctl -1 errno 22 Invalid argument
>
>and this seems to be the sysctl() at line 89 of libc/net/getifaddrs.c
>fetching the size of NET_RT_IFLIST response.

This has been discussed before. You need COMPAT_50 to be compiled in the
kernel, not just the module.

christos



Home | Main Index | Thread Index | Old Index