RE: dhcpcd kills all connections on Wi-Fi roaming between access points
bls sThu Dec 24 01:01:38 2020
Roy, thanks very much for this! A couple of quick question:
* What dhcpcd sources should I start with? I tried 9.3.4, and got an undefined symbol if_roaming in route.c when I built it. Guessing 9.3.4 isn't correct.
* Again, using 9.3.4 to make sure that I could build it, I couldn't get the pidfile defined correctly.
My configure command line: ./configure --libexecdir=/lib/dhcpcd --localstatedir=/var/lib/dhcpcd5 --rundir=/run/dhcpcd --dbdir=/var/lib/dhcpcd5 --disable-privsep --privsep-user=root
Error during boot: dhcpcd.service: Can't open PID file /run/dhcpcd.pid (yet?) after start: No such file or directory
Dhcpcd runs as root on raspios. /run and /run/dhcpcd both exist, but I am unable to sort out why dhcpcd can't open it in /run, or how to get it to write the pid file to /run/dhcpcd, which is where the raspios Buster dhcpcd5 writes it. I suspect the location is a red herring, just mentioning it for completeness.
From: Roy Marples <roy@xxxxxxxxxxxx>
Sent: Wednesday, December 23, 2020 4:21 PM
To: Boris Krasnovskiy <borkra@xxxxxxxxx>
Subject: Re: dhcpcd kills all connections on Wi-Fi roaming between access points
On 12/12/2020 13:20, Roy Marples wrote:
>> 1. It seems 20-resolv.conf hook is trying to remove DNS info on
>> roaming, this should not happen
> Currently it does by design.
> I know it's not desirable for you, but all the hooks need some work as
> noted in my commit. It's just not as simple as reversing in in dhcpcd.
I found some time to work on this and a patch is attached.
If you use resolvconf, you will need a version with the new -C and -c options.
If you use my openresolv, you can find this in the master branch of the openresolv repository.
If you don't use resolvconf or there are no -C or -c options then it will function as before, but the DNS information will persist.
Let me know how this works for you.
Archive administrator: email@example.com