Fri Feb 01, 2019 10:46 am
Hi,
I am running Android OS and working on the dhcpcd version 5.2.10 source Code from Roy Marples. Currently there is no avahi-autoipd running .
After the successful wifi connection dhcpcd is launched and it times out after 60 Sec and resets the connection because it was unable to find any dhcp server in the network. But i though when the dhcpcd times out, it will assign a autoipv4ll address to the interface and will continue looking for the dhcp server. But in my case this is not working. I am not sure whether the above mentioned dhcpcd version supports the Zeroconf feature. Also i tried connecting my Android mobile to the router, i am facing the same issue. But iPhone is able to connect and i can see the IP address in the range 169.254.xx.xx .
When i checked in the dhcpcd source Code, there is a file dhcpcd.8. In that i can see the below comments:
.Ss Local Link configuration
If
.Nm
failed to obtain a lease, it probes for a valid IPv4LL address
.Po
aka ZeroConf, aka APIPA
.Pc .
Once obtained it restarts the process of looking for a DHCP server to get a
proper address.
.Pp
When using IPv4LL,
.Nm
nearly always succeeds and returns an exit code of 0.
In the rare case it fails, it normally means that there is a reverse ARP proxy
installed which always defeats IPv4LL probing.
To disable this behaviour, you can use the
.Fl L , Fl Fl noipv4ll
So i was thinking the dhcpcd i am using will be supporting the Zeroconf and so i need to find a way to enable Zeroconf.
Do you know whether the dhcpcd.8 file contents are saying about the Zeroconf support for the current dhcpcd or the newer version dhcpcd?
Is there any way to add the Zeroconf feature to this dhcpcd version?