RE: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspoints
bls s
Thu Dec 24 01:46:45 2020
My duh. Started it from the command line and seems to be working correctly. Previously it failed immediately, this has gone through 5 renewals with no problem.
Thanks
From: Boris Krasnovskiy <borkra@xxxxxxxxx>
Sent: Wednesday, December 23, 2020 5:29 PM
To: bls s <bls3427@xxxxxxxxxxx>; Roy Marples <roy@xxxxxxxxxxxx>
Cc: dhcpcd-discuss@xxxxxxxxxxxx
Subject: RE: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspoints
For the systemd service it’s better to run dhcpcd with -B, at least that is what systemd recommends to let systemd background the service, not application. Although I am not sure how your service file looks like.
Thank you,
Boris Krasnovskiy
From: bls s<mailto:bls3427@xxxxxxxxxxx>
Sent: Wednesday, December 23, 2020 8:23 PM
To: Boris Krasnovskiy<mailto:borkra@xxxxxxxxx>; Roy Marples<mailto:roy@xxxxxxxxxxxx>
Cc: dhcpcd-discuss@xxxxxxxxxxxx<mailto:dhcpcd-discuss@xxxxxxxxxxxx>
Subject: RE: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspoints
Thanks, Boris. Builds correctly, but I’m still getting the boot-time error “dhcpcd.service: Can't open PID file /run/dhcpcd.pid (yet?) after start: No such file or directory”
From: Boris Krasnovskiy <borkra@xxxxxxxxx>
Sent: Wednesday, December 23, 2020 5:03 PM
To: bls s <bls3427@xxxxxxxxxxx>; Roy Marples <roy@xxxxxxxxxxxx>
Cc: dhcpcd-discuss@xxxxxxxxxxxx
Subject: RE: dhcpcd kills all connections on Wi-Fi roaming between accesspoints
You should start with latest git commit on master.
Thank you,
Boris Krasnovskiy
From: bls s<mailto:bls3427@xxxxxxxxxxx>
Sent: Wednesday, December 23, 2020 8:01 PM
To: Roy Marples<mailto:roy@xxxxxxxxxxxx>; Boris Krasnovskiy<mailto:borkra@xxxxxxxxx>
Cc: dhcpcd-discuss@xxxxxxxxxxxx<mailto:dhcpcd-discuss@xxxxxxxxxxxx>
Subject: RE: dhcpcd kills all connections on Wi-Fi roaming between accesspoints
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.
Thx
bls
-----Original Message-----
From: Roy Marples <roy@xxxxxxxxxxxx>
Sent: Wednesday, December 23, 2020 4:21 PM
To: Boris Krasnovskiy <borkra@xxxxxxxxx>
Cc: dhcpcd-discuss@xxxxxxxxxxxx
Subject: Re: dhcpcd kills all connections on Wi-Fi roaming between access points
Hi Boris
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.
Roy
Archive administrator: postmaster@marples.name