Re: [Openvpn-devel] [PATCH] tun: improve DHCP server address calculation for small subnets

2021-11-11 Thread Lev Stipakov
Hi, > Why not just use 0 offset always? Perpetuating this dance of 0 offset in some > cases, -1 otherwise is not a way forward. Also see my patch from 2015 that > never got any traction. I have lost touch with the context, so, I'm not sure > whether this addresses the same (apart from code

Re: [Openvpn-devel] [PATCH] tun: improve DHCP server address calculation for small subnets

2021-11-10 Thread Selva Nair
Hi, On Wed, Nov 10, 2021 at 6:01 AM Lev Stipakov wrote: > From: Lev Stipakov > > When /30 subnet is pushed (like in the case of OpenVPN Cloud), > DHCP server address is calculated to be the same as local address, > which causes collision and therefore connection is not established. > > To fix

Re: [Openvpn-devel] [PATCH] tun: improve DHCP server address calculation for small subnets

2021-11-10 Thread Lev Stipakov
This can be considered as a bugfix ("Cannot use openvpn2 as OpenVPN Cloud connector") so could go into release/2.5 too. ke 10. marrask. 2021 klo 12.59 Lev Stipakov (lstipa...@gmail.com) kirjoitti: > > From: Lev Stipakov > > When /30 subnet is pushed (like in the case of OpenVPN Cloud), > DHCP

[Openvpn-devel] [PATCH] tun: improve DHCP server address calculation for small subnets

2021-11-10 Thread Lev Stipakov
From: Lev Stipakov When /30 subnet is pushed (like in the case of OpenVPN Cloud), DHCP server address is calculated to be the same as local address, which causes collision and therefore connection is not established. To fix that, use openvpn3 approach, which sets DHCP server address to a