udhcpc in 1.10.3 doesn't like my WLAN card

Denys Vlasenko vda.linux at googlemail.com
Thu Jun 12 00:23:53 PDT 2008


On Monday 09 June 2008 16:59, Alexander Griesser wrote:
> Hi list!
> 
> I encountered a strange problem today (took me quite some time to find
> out what's wrong).
> I'm currently using busybox 1.10.3 and am trying to get an IP address on
> my RAlink 2501 USB wireless card using the rt73 driver from ralinktech.com.
> 
> When I start `udhcpc -i rausb0` it never completes:
> 
> # strace -f -o /tmp/bb-udhcpc.out /sbin/udhcpc -i rausb0
> udhcpc (v1.10.3) started
> Sending discover...
> Sending discover...
> Sending discover...
> Sending discover...
> Sending discover...
> Sending discover...
> Sending discover...
> Sending discover...
> Sending discover...
> 
> I've attached this strace output.

Hmmm. Does it help if you delete this code block?

        if (SERVER_PORT == 67 && CLIENT_PORT == 68) {
                /* Use only if standard ports are in use */
                /* Ignoring error (kernel may lack support for this) */
                if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &filter_prog,
                                sizeof(filter_prog)) >= 0)
                        DEBUG("attached filter to raw socket fd %d", fd);
        }

> When I'm using my distributions `udhcpc`, it works without problems.
> 
> # strace -f -o /tmp/gnu-udhcpc.out ./udhcpc -i rausb0 -s /bin/udhcpc.sh
> udhcpc (v0.9.9-pre) started
> Sending discover...
> Sending discover...
> Sending select for 10.35.100.63...
> Lease of 10.35.100.63 obtained, lease time 2592000

Can you collect "tcpdump -nlieth0 -s0 -vvv -xX port 67 or port 68" output
for both?
--
vda




More information about the busybox mailing list