udhcpd returns SO_BINDTODEVICE

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 10 22:23:15 UTC 2008


On Wednesday 10 December 2008 13:08, Alexander Griesser wrote:
> Denys Vlasenko wrote:
> >> start 		192.168.90.20
> >> end		192.168.90.254
> >> interface	usb0
> >> opt     dns     10.10.10.10
> >> option  subnet  255.255.255.0
> >> opt     router  10.10.10.10
> >> option  domain  local
> >> option  lease   86400
> >
> > Looks like a bug, does this help?
> >
> > http://busybox.net/downloads/fixes-1.13.1/busybox-1.13.1-bindtodevice.patch
> 
> Mine stopped building when I applied this patch:
> 
> During compilation, I get the following messages:
> 
> [...]
> libbb/xconnect.c: In function 'setsockopt_bindtodevice':
> libbb/xconnect.c:25: warning: implicit declaration of function
> 'strncpy_IFNAMSIZ'
> [...]
> networking/libiproute/ll_proto.c:24:2: warning: #warning de-bloat
> [...]

Thanks for testing.

Oh, yes, it should be strncpy(ifr.ifr_name, iface, IFNAMSIZ);

I updated the patch, try again please.

--
vda



More information about the busybox mailing list