On Fri, Jul 11, 2014 at 03:02:02AM +0200, Joakim Tjernlund wrote: > Wrong type was used in ioctl definition.
Thanks, Applied to linux-user > Signed-off-by: Joakim Tjernlund <joakim.tjernl...@transmode.se> > --- > > However, this does not fix my dhcp problem: > > jocke-ppc ~ # busybox udhcpc -v > Adapter index 24 > MAC fe:22:44:22:55:77 > udhcpc (v1.21.0) started > Executing /usr/share/udhcpc/default.script deconfig > Setting IP address 0.0.0.0 on eth0 > Entering listen mode: raw > Opening raw socket on ifindex 24 > Got raw socket fd > udhcpc: bind: No such device > jocke-ppc ~ # cat /sys/class/net/eth0/ifindex > 24 > linux-user/ioctls.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h > index 07a00da..609b27c 100644 > --- a/linux-user/ioctls.h > +++ b/linux-user/ioctls.h > @@ -118,7 +118,7 @@ > IOCTL(SIOCSIFMEM, IOC_W, MK_PTR(MK_STRUCT(STRUCT_ptr_ifreq))) > IOCTL(SIOCADDMULTI, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) > IOCTL(SIOCDELMULTI, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) > - IOCTL(SIOCGIFINDEX, IOC_W | IOC_R, > MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) > + IOCTL(SIOCGIFINDEX, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_int_ifreq))) > IOCTL(SIOCSIFLINK, 0, TYPE_NULL) > IOCTL_SPECIAL(SIOCGIFCONF, IOC_W | IOC_R, do_ioctl_ifconf, > MK_PTR(MK_STRUCT(STRUCT_ifconf))) > -- > 1.8.5.5 >