ntdll: Check for unsupported socket protocol+option combinations.
commit169553916e5d1a3765177e60e1fb32d2ef7d6c49
authorAlex Henrie <alexhenrie24@gmail.com>
Wed, 18 Aug 2021 05:50:47 +0000 (17 23:50 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 18 Aug 2021 18:07:59 +0000 (18 20:07 +0200)
treee251490c03b4dc9501a8aae607840c519cb1a946
parent6e7ca583746d3a266c56e777c13f3086bf73d141
ntdll: Check for unsupported socket protocol+option combinations.

Windows supports none of these options on TCP. Linux supports all of
them on TCP. Mac OS supports some of them on TCP, but sets EOPNOTSUPP
instead of EINVAL for the ones that it doesn't support. So, Wine needs
to do its own check for whether the option may be used with the socket.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ntdll/unix/socket.c