Re: dhcpcd kills all connections on Wi-Fi roaming between access points
Boris Krasnovskiy
Mon Dec 07 14:34:03 2020
Hi Roy,
NOCARRIER_PRESERVE_IP currently does not work, i.e. does not preserve IPv4.
The problem is the code at the bottom of dhcp_abort it deletes IP and route
and tries to send ARP when there is no carrier.
On Sat, Dec 5, 2020 at 6:24 AM Boris Krasnovskiy <borkra@xxxxxxxxx> wrote:
> Hi Roy,
>
>
>
> The problem here is that dhcpcd destroys routes on CARRIER up/down events,
> that maybe correct for the Ethernet. For Wi-FI though Carrier Up/Down
> events generated on roaming from one access point to the other even on the
> same network, destroying routes during roaming is very bad as it is
> destroying all the TCP connections. The desired behavior is to preserve
> routes on carrier up/down for Wi-Fi connections, but issue RENEW/REQUEST
> on carrier up.
>
>
>
> I noticed NOCARRIER_PRESERVE_IP setting in the code that seems to do a
> similar thing, but it is disabled and it is global. I would greatly
> appreciate it if you could provide a solution to the problem.
>
>
--
Thank you,
Boris Krasnovskiy
Archive administrator: postmaster@marples.name