On Freitag, 24. Juni 2022 10:38:07 CEST Antonio Quartulli wrote:
> + if (!is_windco(c->c1.tuntap))
[...]
> + if ((options->windows_driver ==
> WINDOWS_DRIVER_WINTUN || options->windows_driver == WINDOWS_DRIVER_WINDCO)
[...]
> +create_socket_windco(struct context *c, struct link_socket *sock,
Thinking "_dco_win" would be a better suffix for consistency.
> - status = WSAGetLastError();
> + if (sock->info.dco_installed)
> + {
> + status = GetLastError();
> + }
> + else
> + {
> + status = WSAGetLastError();
> + }
Small wrapper would be good as this construct appears twice.
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel