Re: [Openvpn-devel] [PATCH v10 05/25] dco: let open_tun_generic handle the DCO case

2022-07-21 Thread Gert Doering
Hi, On Tue, Jul 19, 2022 at 04:16:39PM +0200, Antonio Quartulli wrote: > open_tun_generic already contains the logic required to find a device > name when not specified b the user. For this reason the DCO case can > easily leverage on function and avoid code duplication. > > Signed-off-by:

[Openvpn-devel] [PATCH v11 05/25] dco: introduce open_tun_dco_generic() to open dynamic or fixed-name DCO devices

2022-07-21 Thread Gert Doering
From: Antonio Quartulli This function is similar to the essence of open_tun_generic(), but calling open_tun_dco() instead of trying to do a file open on "/dev/%s" Previous attempts to save code duplication by including this into open_tun_generic() created additional #ifdef plus confusing call