Re: [patch] [rfc] Re: udhcpc eating too much cpu

2008-01-17 Thread Paul Fox
+if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, filter_prog, +sizeof(filter_prog)) 0) +bb_perror_msg_and_die(setsockopt); +DEBUG(attached filter to raw socket fdr %d, fd); is this supported on all kernel versions that busybox currently

Re: [patch] [rfc] Re: udhcpc eating too much cpu

2008-01-17 Thread Cristian Ionescu-Idbohrn
On Thu, 17 Jan 2008, Paul Fox wrote: + if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, filter_prog, + sizeof(filter_prog)) 0) + bb_perror_msg_and_die(setsockopt); + DEBUG(attached filter to raw socket fdr %d, fd); is this supported on all kernel

Re: [patch] [rfc] Re: udhcpc eating too much cpu

2008-01-17 Thread Cristian Ionescu-Idbohrn
Oh, Bernhard... Why do you make my life so much more complicated than it already is ;) On Thu, 17 Jan 2008, Bernhard Fischer wrote: Can you please separate the whitespace fixes from actual changes (diff -rdupbBw or the like to filter out the noise). Wasn' much of that. Attached is the

[patch] [rfc] Re: udhcpc eating too much cpu

2008-01-16 Thread Cristian Ionescu-Idbohrn
On Sun, 13 Jan 2008, Cristian Ionescu-Idbohrn wrote: The problem is described here too: http://archives.devshed.com/forums/networking-100/dhclient-raw-socket-2147170.html We noticed that too (corner cases). udhcpc eats up to 30% cpu. That happens after DISCOVER while waiting for OFFER.