dhclient on linux ppc
Anselmo Lacerda Silveira de Melo
anselmo.melo at asga.com.br
Thu Oct 19 15:59:36 UTC 2006
Em Qui, 2006-10-19 às 09:06 -0700, David W. Hankins escreveu:
> On Thu, Oct 19, 2006 at 11:37:51AM -0200, Anselmo Lacerda Silveira de Melo wrote:
> > Can't get interface flags for : No such device
>
> Looks like a bug in SIOCIFCONF. It's giving an interface structure with
> no name.
>
> Try editing common/discover.c, here:
>
> /* Cycle through the list of interfaces looking for IP addresses. */
> for (i = 0; i < ic.ifc_len;) {
> struct ifreq *ifp = (struct ifreq *)((caddr_t)ic.ifc_req + i);
>
> Just after this line, add:
>
> if (ifp->ifr_name[0] == '\0')
> continue;
>
Now when I run dhclient, it only shows the default copyright message and
nothing else (stays freezed)
> > Can anybody help me, please?
>
> Either way, I suspect this is a linux kernel bug.
>
:-/
--
Anselmo
More information about the dhcp-users
mailing list