Re: getifaddrs problem: interface not detected
Roy Marples
Tue Mar 08 20:50:12 2011
.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