I upgraded net-misc/dhcpcd-2.0.5-r1 to -3.0.16 today. Suddenly may wlan stopped working (atheros/madwifi/wrt54g wlan router). Reboot didn't help. So I went back to 2.0.5 and everything is fine again. Please advice me if you need more details. Reproducible: Always
Please add -d to your dhcpcd options and provide a log file of it failing along with your emerge --info output. Attach both to the bug. If you can capture wireshark traces of dhcpcd-2.0.5 and 3.0.16 as well it would be helpful too. Thanks
Also, please test using the -l option to specify a leasetime.
Roy, thank you for the -d hint. So it turned out that I used the -D in /etc/conf.d/net. But this options is obviously no longer supported: #/sbin/dhcpcd -h lab5 -DH -N -t 10 -m 2000 ath0 -l 100 -d /sbin/dhcpcd: invalid option -- D The manpage of 2.0.5 says: -D Forces dhcpcd to set domainname of the host to the domainname option supplied by DHCP server. But 3.0.16 fails with this option. I can live without it, but wonder why they removed this option while -H is still present. Anyway, thanks and please close this report.
(In reply to comment #3) > Roy, thank you for the -d hint. So it turned out that I used the -D in > I can live without it, but wonder why they removed this option while -H is > still present. Ah easy one. Setting the dns domain name is done via /etc/resolv.conf only and the existing implementation was buggy. With dhcpcd-3 if you need to tweak resolv.conf then use a resolvconf manager like resolvconf-gentoo. -H is still valid :)
A warning during upgrade would have been nice.