NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/39424 (SIOCGIFFLAGS ioctl(2) from 4.0 does not work under compat netbsd32)
On Sat, Dec 05, 2009 at 08:41:42AM +1100, matthew green wrote:
>
> my guess is that this commit is the problem:
>
> http://mail-index.netbsd.org/source-changes/2007/05/29/msg186117.html
>
> it changed the size of struct ifreq, pushing the ifru_flags flags further
> into memory by sizeof(struct sockaddr_storage).
>
> christos? the comment says it should be backwrds compatible.
I do see the problem with compat linux32 which rely on compat netbsd32
for such ioctls (OSIOCGIFFLAGS).
njoly@nicodeme [linux/ioctls]> ifconfig -au |& grep flags
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
njoly@nicodeme [linux/ioctls]> file siocgifflags
siocgifflags: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.4.1, not stripped
njoly@nicodeme [linux/ioctls]> ./siocgifflags
wm0 0x8843
lo0 0x8049
njoly@nicodeme [linux/ioctls]> file siocgifflags
siocgifflags: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.4.1, not stripped
njoly@nicodeme [linux/ioctls]> ./siocgifflags
wm0 0x3000
lo0 0x3000
--
Nicolas Joly
Biological Software and Databanks.
Institut Pasteur, Paris.
Home |
Main Index |
Thread Index |
Old Index