[Openvpn-devel] [PATCH] Adjust Linux+FreeBSD DCO device name handling to 'non DCO linux style'

2022-08-29 Thread Gert Doering
On Linux, tun devices are created according to the following algorithm --dev tun-> try tun0, tun1, ... tun255, use first free --dev anything -> create a TUN device named "anything" (as long as "anything" is not "null" or "tap[N]") DCO was following the "other platform convention", where ev

Re: [Openvpn-devel] [PATCH] dco-win: support for --persist-tun

2022-08-29 Thread lstipakov
Let’s not merge it yet. I managed to get a BSOD with the new driver version, which this patch is supposed to use. I haven’t seen those for a while, which means that the previous driver version (0.7.6) is stable and new one (with persist tun support) is not. We’ll get back to this patch when I’

[Openvpn-devel] [PATCH] dco-win: support for --persist-tun

2022-08-29 Thread Lev Stipakov
From: Lev Stipakov Since version 0.8.0, dco-win driver added support for DEL_PEER command, which enabled --persist-tun implementation on client side. Add real implementation for dco_del_peer on Windows, which calls DEL_PEER, which clears peer state on the driver without tearing tunnel down. Whe