[PATCH] ws2_32: Add support to disable networking with envvar WINENONET=1

Stefan Dösinger stefandoesinger at gmail.com
Thu Dec 8 12:41:32 CST 2016


Am 2016-12-07 um 06:27 schrieb Bruno Jesus:
> @@ -2433,6 +2438,12 @@ static int WS2_send( int fd, struct ws2_async *wsa, int flags )
>      union generic_unix_sockaddr unix_addr;
>      int n, ret;
>  
> +    if (network_disabled)
> +    {
> +        errno = EHOSTUNREACH;
> +        return -1;
> +    }
> +
Shouldn't it be possible to achieve a similar effect with a LD_PRELOAD library?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20161208/01a383c2/attachment.sig>


More information about the wine-devel mailing list