dhcpcd-discuss

getifaddrs problem: interface not detected

Ram Kumar Koppu

Tue Mar 08 20:22:54 2011

Hi,
In our embedded device we have dhcpcd 1.3.22-p14 version which is working
fine for years. Recently we thought of running new version of dhcpcd 5.2.11
on this same device. But this new version of dhcpcd is not detecting network
cards in our system.
I saw source code of both 1.3.22 and 5.2.11 and found that these versions
are using diffirent mechanisam to detect networks cards in the system.
version 1.3.22  uses ioctl (SIOCGIFHWADDR) to get all the network cards from
the system.
version 5.2.11 uses getifaddrs() call to get all the network cards from the
system.

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 ?

Regards
Ram

Follow-Ups:
Re: getifaddrs problem: interface not detectedRoy Marples
Archive administrator: postmaster@marples.name