Re: getifaddrs problem: interface not detected
Ram Kumar Koppu
Tue Mar 08 21:32:49 2011
Thanks Roy for the quick reply. Do you mean to say the new getifaddrs() work
similar to ioctl(SIOCGIFHWADDR) if i install latest libc?
I do not want to have busybox only for dhcp support. I do not want to touch
any other programs in our system except dhcp and openssl.
And the other thing how to use compat/getifaddrs-linux.c patch?
-- Ram
On 8 March 2011 20:50, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> .cHi
>
> On Tue, 2011-03-08 at 20:22 +0000, Ram Kumar Koppu wrote:
> > getifaddrs() call in latest dhcpcd is not detecting our network cards
> > in our system to send dhcp request. Its is only listing loop back
> > device (lo). We would like to use latest version of dhcpcd but if it
> > detect all network cards in our system. Is there anyway to solve this
> > problem in 5.2.11 ?
>
> Well, first some background. The dhcpcd version you have working here
> was very much linux only. When it gained support for BSD I was able to
> remove a large chunk of platform specific code by moving to
> getifaddrs(3). It should be noted that the getifaddrs(3) interface
> originated on BSD and is not part of any formal standard but has been
> adopted by the libc's for other platforms such as GNU libc and uclibc.
>
> Now, busybox is used by most embedded systems for Linux, so you could
> try upgrading that as it gain getifaddrs support "recently" (as in a
> year or two ago).
>
> Another option is to write a patch for dhcpcd to add
> compat/getifaddrs-linux.c and emulate the interface using the old style
> code.
>
> Of course, the "best" solution would be to fix your libc getifaddrs(3)
> interface.
>
> Thanks
>
> Roy
>
>
Archive administrator: postmaster@marples.name