ws2_32: Move the setsockopt(IP_UNICAST_IF) implementation to ntdll.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-07-27 00:13:35 -05:00 committed by Alexandre Julliard
parent 5819c52f3a
commit a06bcd03b9
3 changed files with 5 additions and 4 deletions

View File

@ -1797,6 +1797,9 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
#ifdef IP_UNICAST_IF
case IOCTL_AFD_WINE_GET_IP_UNICAST_IF:
return do_getsockopt( handle, io, IPPROTO_IP, IP_UNICAST_IF, out_buffer, out_size );
case IOCTL_AFD_WINE_SET_IP_UNICAST_IF:
return do_setsockopt( handle, io, IPPROTO_IP, IP_UNICAST_IF, in_buffer, in_size );
#endif
default:

View File

@ -3705,11 +3705,8 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
case WS_IP_UNBLOCK_SOURCE:
return server_setsockopt( s, IOCTL_AFD_WINE_SET_IP_UNBLOCK_SOURCE, optval, optlen );
#ifdef IP_UNICAST_IF
case WS_IP_UNICAST_IF:
#endif
convert_sockopt(&level, &optname);
break;
return server_setsockopt( s, IOCTL_AFD_WINE_SET_IP_UNICAST_IF, optval, optlen );
default:
FIXME("Unknown IPPROTO_IP optname 0x%08x\n", optname);

View File

@ -206,6 +206,7 @@ struct afd_get_events_params
#define IOCTL_AFD_WINE_SET_IP_TTL WINE_AFD_IOC(261)
#define IOCTL_AFD_WINE_SET_IP_UNBLOCK_SOURCE WINE_AFD_IOC(262)
#define IOCTL_AFD_WINE_GET_IP_UNICAST_IF WINE_AFD_IOC(263)
#define IOCTL_AFD_WINE_SET_IP_UNICAST_IF WINE_AFD_IOC(264)
struct afd_create_params
{